Skip to content

Automated Protos Update #251

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 17 additions & 2 deletions src/viam/gen/app/v1/app_grpc.py

Large diffs are not rendered by default.

26 changes: 23 additions & 3 deletions src/viam/gen/app/v1/app_pb2.py

Large diffs are not rendered by default.

176 changes: 175 additions & 1 deletion src/viam/gen/app/v1/app_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1764,4 +1764,178 @@ class DeleteRobotPartSecretResponse(google.protobuf.message.Message):

def __init__(self) -> None:
...
global___DeleteRobotPartSecretResponse = DeleteRobotPartSecretResponse
global___DeleteRobotPartSecretResponse = DeleteRobotPartSecretResponse

@typing_extensions.final
class Authorization(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
IDENTITY_ID_FIELD_NUMBER: builtins.int
AUTHORIZATION_TYPE_FIELD_NUMBER: builtins.int
AUTHORIZATION_ID_FIELD_NUMBER: builtins.int
RESOURCE_TYPE_FIELD_NUMBER: builtins.int
RESOURCE_ID_FIELD_NUMBER: builtins.int
identity_id: builtins.str
authorization_type: builtins.str
authorization_id: builtins.str
resource_type: builtins.str
resource_id: builtins.str

def __init__(self, *, identity_id: builtins.str=..., authorization_type: builtins.str=..., authorization_id: builtins.str=..., resource_type: builtins.str=..., resource_id: builtins.str=...) -> None:
...

def ClearField(self, field_name: typing_extensions.Literal['authorization_id', b'authorization_id', 'authorization_type', b'authorization_type', 'identity_id', b'identity_id', 'resource_id', b'resource_id', 'resource_type', b'resource_type']) -> None:
...
global___Authorization = Authorization

@typing_extensions.final
class AddRoleRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
IDENTITY_ID_FIELD_NUMBER: builtins.int
ROLE_ID_FIELD_NUMBER: builtins.int
RESOURCE_TYPE_FIELD_NUMBER: builtins.int
RESOURCE_ID_FIELD_NUMBER: builtins.int
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
identity_id: builtins.str
role_id: builtins.str
resource_type: builtins.str
resource_id: builtins.str
organization_id: builtins.str

def __init__(self, *, identity_id: builtins.str=..., role_id: builtins.str=..., resource_type: builtins.str=..., resource_id: builtins.str=..., organization_id: builtins.str=...) -> None:
...

def ClearField(self, field_name: typing_extensions.Literal['identity_id', b'identity_id', 'organization_id', b'organization_id', 'resource_id', b'resource_id', 'resource_type', b'resource_type', 'role_id', b'role_id']) -> None:
...
global___AddRoleRequest = AddRoleRequest

@typing_extensions.final
class AddRoleResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
AUTHORIZATION_FIELD_NUMBER: builtins.int

@property
def authorization(self) -> global___Authorization:
...

def __init__(self, *, authorization: global___Authorization | None=...) -> None:
...

def HasField(self, field_name: typing_extensions.Literal['authorization', b'authorization']) -> builtins.bool:
...

def ClearField(self, field_name: typing_extensions.Literal['authorization', b'authorization']) -> None:
...
global___AddRoleResponse = AddRoleResponse

@typing_extensions.final
class RemoveRoleRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
IDENTITY_ID_FIELD_NUMBER: builtins.int
ROLE_ID_FIELD_NUMBER: builtins.int
RESOURCE_TYPE_FIELD_NUMBER: builtins.int
RESOURCE_ID_FIELD_NUMBER: builtins.int
identity_id: builtins.str
role_id: builtins.str
resource_type: builtins.str
resource_id: builtins.str

def __init__(self, *, identity_id: builtins.str=..., role_id: builtins.str=..., resource_type: builtins.str=..., resource_id: builtins.str=...) -> None:
...

def ClearField(self, field_name: typing_extensions.Literal['identity_id', b'identity_id', 'resource_id', b'resource_id', 'resource_type', b'resource_type', 'role_id', b'role_id']) -> None:
...
global___RemoveRoleRequest = RemoveRoleRequest

@typing_extensions.final
class RemoveRoleResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

def __init__(self) -> None:
...
global___RemoveRoleResponse = RemoveRoleResponse

@typing_extensions.final
class ListAuthorizationsRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
RESOURCE_TYPE_FIELD_NUMBER: builtins.int
RESOURCE_ID_FIELD_NUMBER: builtins.int
resource_type: builtins.str
resource_id: builtins.str

def __init__(self, *, resource_type: builtins.str=..., resource_id: builtins.str=...) -> None:
...

def ClearField(self, field_name: typing_extensions.Literal['resource_id', b'resource_id', 'resource_type', b'resource_type']) -> None:
...
global___ListAuthorizationsRequest = ListAuthorizationsRequest

@typing_extensions.final
class ListAuthorizationsResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
AUTHORIZATIONS_FIELD_NUMBER: builtins.int

@property
def authorizations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Authorization]:
...

def __init__(self, *, authorizations: collections.abc.Iterable[global___Authorization] | None=...) -> None:
...

def ClearField(self, field_name: typing_extensions.Literal['authorizations', b'authorizations']) -> None:
...
global___ListAuthorizationsResponse = ListAuthorizationsResponse

@typing_extensions.final
class CheckPermissionsRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
RESOURCE_IDS_FIELD_NUMBER: builtins.int
PERMISSION_IDS_FIELD_NUMBER: builtins.int

@property
def resource_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
...

@property
def permission_ids(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
...

def __init__(self, *, resource_ids: collections.abc.Iterable[builtins.str] | None=..., permission_ids: collections.abc.Iterable[builtins.str] | None=...) -> None:
...

def ClearField(self, field_name: typing_extensions.Literal['permission_ids', b'permission_ids', 'resource_ids', b'resource_ids']) -> None:
...
global___CheckPermissionsRequest = CheckPermissionsRequest

@typing_extensions.final
class AuthorizedPermissions(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
RESOURCE_ID_FIELD_NUMBER: builtins.int
PERMISSIONS_FIELD_NUMBER: builtins.int
resource_id: builtins.str

@property
def permissions(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
...

def __init__(self, *, resource_id: builtins.str=..., permissions: collections.abc.Iterable[builtins.str] | None=...) -> None:
...

def ClearField(self, field_name: typing_extensions.Literal['permissions', b'permissions', 'resource_id', b'resource_id']) -> None:
...
global___AuthorizedPermissions = AuthorizedPermissions

@typing_extensions.final
class CheckPermissionsResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
AUTHORIZED_PERMISSIONS_FIELD_NUMBER: builtins.int

@property
def authorized_permissions(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AuthorizedPermissions]:
...

def __init__(self, *, authorized_permissions: collections.abc.Iterable[global___AuthorizedPermissions] | None=...) -> None:
...

def ClearField(self, field_name: typing_extensions.Literal['authorized_permissions', b'authorized_permissions']) -> None:
...
global___CheckPermissionsResponse = CheckPermissionsResponse
17 changes: 1 addition & 16 deletions src/viam/gen/service/slam/v1/slam_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,32 +23,17 @@ async def GetPointCloudMap(self, stream: 'grpclib.server.Stream[service.slam.v1.
async def GetInternalState(self, stream: 'grpclib.server.Stream[service.slam.v1.slam_pb2.GetInternalStateRequest, service.slam.v1.slam_pb2.GetInternalStateResponse]') -> None:
pass

@abc.abstractmethod
async def GetPositionNew(self, stream: 'grpclib.server.Stream[service.slam.v1.slam_pb2.GetPositionNewRequest, service.slam.v1.slam_pb2.GetPositionNewResponse]') -> None:
pass

@abc.abstractmethod
async def GetPointCloudMapStream(self, stream: 'grpclib.server.Stream[service.slam.v1.slam_pb2.GetPointCloudMapStreamRequest, service.slam.v1.slam_pb2.GetPointCloudMapStreamResponse]') -> None:
pass

@abc.abstractmethod
async def GetInternalStateStream(self, stream: 'grpclib.server.Stream[service.slam.v1.slam_pb2.GetInternalStateStreamRequest, service.slam.v1.slam_pb2.GetInternalStateStreamResponse]') -> None:
pass

@abc.abstractmethod
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
pass

def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
return {'/viam.service.slam.v1.SLAMService/GetPosition': grpclib.const.Handler(self.GetPosition, grpclib.const.Cardinality.UNARY_UNARY, service.slam.v1.slam_pb2.GetPositionRequest, service.slam.v1.slam_pb2.GetPositionResponse), '/viam.service.slam.v1.SLAMService/GetPointCloudMap': grpclib.const.Handler(self.GetPointCloudMap, grpclib.const.Cardinality.UNARY_STREAM, service.slam.v1.slam_pb2.GetPointCloudMapRequest, service.slam.v1.slam_pb2.GetPointCloudMapResponse), '/viam.service.slam.v1.SLAMService/GetInternalState': grpclib.const.Handler(self.GetInternalState, grpclib.const.Cardinality.UNARY_STREAM, service.slam.v1.slam_pb2.GetInternalStateRequest, service.slam.v1.slam_pb2.GetInternalStateResponse), '/viam.service.slam.v1.SLAMService/GetPositionNew': grpclib.const.Handler(self.GetPositionNew, grpclib.const.Cardinality.UNARY_UNARY, service.slam.v1.slam_pb2.GetPositionNewRequest, service.slam.v1.slam_pb2.GetPositionNewResponse), '/viam.service.slam.v1.SLAMService/GetPointCloudMapStream': grpclib.const.Handler(self.GetPointCloudMapStream, grpclib.const.Cardinality.UNARY_STREAM, service.slam.v1.slam_pb2.GetPointCloudMapStreamRequest, service.slam.v1.slam_pb2.GetPointCloudMapStreamResponse), '/viam.service.slam.v1.SLAMService/GetInternalStateStream': grpclib.const.Handler(self.GetInternalStateStream, grpclib.const.Cardinality.UNARY_STREAM, service.slam.v1.slam_pb2.GetInternalStateStreamRequest, service.slam.v1.slam_pb2.GetInternalStateStreamResponse), '/viam.service.slam.v1.SLAMService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)}
return {'/viam.service.slam.v1.SLAMService/GetPosition': grpclib.const.Handler(self.GetPosition, grpclib.const.Cardinality.UNARY_UNARY, service.slam.v1.slam_pb2.GetPositionRequest, service.slam.v1.slam_pb2.GetPositionResponse), '/viam.service.slam.v1.SLAMService/GetPointCloudMap': grpclib.const.Handler(self.GetPointCloudMap, grpclib.const.Cardinality.UNARY_STREAM, service.slam.v1.slam_pb2.GetPointCloudMapRequest, service.slam.v1.slam_pb2.GetPointCloudMapResponse), '/viam.service.slam.v1.SLAMService/GetInternalState': grpclib.const.Handler(self.GetInternalState, grpclib.const.Cardinality.UNARY_STREAM, service.slam.v1.slam_pb2.GetInternalStateRequest, service.slam.v1.slam_pb2.GetInternalStateResponse), '/viam.service.slam.v1.SLAMService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)}

class SLAMServiceStub:

def __init__(self, channel: grpclib.client.Channel) -> None:
self.GetPosition = grpclib.client.UnaryUnaryMethod(channel, '/viam.service.slam.v1.SLAMService/GetPosition', service.slam.v1.slam_pb2.GetPositionRequest, service.slam.v1.slam_pb2.GetPositionResponse)
self.GetPointCloudMap = grpclib.client.UnaryStreamMethod(channel, '/viam.service.slam.v1.SLAMService/GetPointCloudMap', service.slam.v1.slam_pb2.GetPointCloudMapRequest, service.slam.v1.slam_pb2.GetPointCloudMapResponse)
self.GetInternalState = grpclib.client.UnaryStreamMethod(channel, '/viam.service.slam.v1.SLAMService/GetInternalState', service.slam.v1.slam_pb2.GetInternalStateRequest, service.slam.v1.slam_pb2.GetInternalStateResponse)
self.GetPositionNew = grpclib.client.UnaryUnaryMethod(channel, '/viam.service.slam.v1.SLAMService/GetPositionNew', service.slam.v1.slam_pb2.GetPositionNewRequest, service.slam.v1.slam_pb2.GetPositionNewResponse)
self.GetPointCloudMapStream = grpclib.client.UnaryStreamMethod(channel, '/viam.service.slam.v1.SLAMService/GetPointCloudMapStream', service.slam.v1.slam_pb2.GetPointCloudMapStreamRequest, service.slam.v1.slam_pb2.GetPointCloudMapStreamResponse)
self.GetInternalStateStream = grpclib.client.UnaryStreamMethod(channel, '/viam.service.slam.v1.SLAMService/GetInternalStateStream', service.slam.v1.slam_pb2.GetInternalStateStreamRequest, service.slam.v1.slam_pb2.GetInternalStateStreamResponse)
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.service.slam.v1.SLAMService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
Loading