Skip to content

Automated Protos Update #794

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
Dec 12, 2024
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
4 changes: 1 addition & 3 deletions src/viam/components/gripper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,4 @@
"Gripper",
]

Registry.register_subtype(
ResourceRegistration(Gripper, GripperRPCService, lambda name, channel: GripperClient(name, channel))
)
Registry.register_subtype(ResourceRegistration(Gripper, GripperRPCService, lambda name, channel: GripperClient(name, channel)))
196 changes: 96 additions & 100 deletions src/viam/gen/app/data/v1/data_pb2.py

Large diffs are not rendered by default.

36 changes: 8 additions & 28 deletions src/viam/gen/app/data/v1/data_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -454,29 +454,9 @@ global___ExportTabularDataRequest = ExportTabularDataRequest
class ExportTabularDataResponse(google.protobuf.message.Message):
"""ExportTabularDataResponse provides unified tabular data and metadata for a single data point from the specified data source."""
DESCRIPTOR: google.protobuf.descriptor.Descriptor

@typing.final
class MethodParametersEntry(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
KEY_FIELD_NUMBER: builtins.int
VALUE_FIELD_NUMBER: builtins.int
key: builtins.str

@property
def value(self) -> google.protobuf.any_pb2.Any:
...

def __init__(self, *, key: builtins.str=..., value: google.protobuf.any_pb2.Any | None=...) -> None:
...

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

def ClearField(self, field_name: typing.Literal['key', b'key', 'value', b'value']) -> None:
...
PART_ID_FIELD_NUMBER: builtins.int
COMPONENT_NAME_FIELD_NUMBER: builtins.int
COMPONENT_TYPE_FIELD_NUMBER: builtins.int
RESOURCE_NAME_FIELD_NUMBER: builtins.int
RESOURCE_SUBTYPE_FIELD_NUMBER: builtins.int
METHOD_NAME_FIELD_NUMBER: builtins.int
TIME_CAPTURED_FIELD_NUMBER: builtins.int
ORGANIZATION_ID_FIELD_NUMBER: builtins.int
Expand All @@ -488,8 +468,8 @@ class ExportTabularDataResponse(google.protobuf.message.Message):
TAGS_FIELD_NUMBER: builtins.int
PAYLOAD_FIELD_NUMBER: builtins.int
part_id: builtins.str
component_name: builtins.str
component_type: builtins.str
resource_name: builtins.str
resource_subtype: builtins.str
method_name: builtins.str
organization_id: builtins.str
location_id: builtins.str
Expand All @@ -502,7 +482,7 @@ class ExportTabularDataResponse(google.protobuf.message.Message):
...

@property
def method_parameters(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, google.protobuf.any_pb2.Any]:
def method_parameters(self) -> google.protobuf.struct_pb2.Struct:
...

@property
Expand All @@ -513,13 +493,13 @@ class ExportTabularDataResponse(google.protobuf.message.Message):
def payload(self) -> google.protobuf.struct_pb2.Struct:
...

def __init__(self, *, part_id: builtins.str=..., component_name: builtins.str=..., component_type: builtins.str=..., method_name: builtins.str=..., time_captured: google.protobuf.timestamp_pb2.Timestamp | None=..., organization_id: builtins.str=..., location_id: builtins.str=..., robot_name: builtins.str=..., robot_id: builtins.str=..., part_name: builtins.str=..., method_parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=..., tags: collections.abc.Iterable[builtins.str] | None=..., payload: google.protobuf.struct_pb2.Struct | None=...) -> None:
def __init__(self, *, part_id: builtins.str=..., resource_name: builtins.str=..., resource_subtype: builtins.str=..., method_name: builtins.str=..., time_captured: google.protobuf.timestamp_pb2.Timestamp | None=..., organization_id: builtins.str=..., location_id: builtins.str=..., robot_name: builtins.str=..., robot_id: builtins.str=..., part_name: builtins.str=..., method_parameters: google.protobuf.struct_pb2.Struct | None=..., tags: collections.abc.Iterable[builtins.str] | None=..., payload: google.protobuf.struct_pb2.Struct | None=...) -> None:
...

def HasField(self, field_name: typing.Literal['payload', b'payload', 'time_captured', b'time_captured']) -> builtins.bool:
def HasField(self, field_name: typing.Literal['method_parameters', b'method_parameters', 'payload', b'payload', 'time_captured', b'time_captured']) -> builtins.bool:
...

def ClearField(self, field_name: typing.Literal['component_name', b'component_name', 'component_type', b'component_type', 'location_id', b'location_id', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'organization_id', b'organization_id', 'part_id', b'part_id', 'part_name', b'part_name', 'payload', b'payload', 'robot_id', b'robot_id', 'robot_name', b'robot_name', 'tags', b'tags', 'time_captured', b'time_captured']) -> None:
def ClearField(self, field_name: typing.Literal['location_id', b'location_id', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'organization_id', b'organization_id', 'part_id', b'part_id', 'part_name', b'part_name', 'payload', b'payload', 'resource_name', b'resource_name', 'resource_subtype', b'resource_subtype', 'robot_id', b'robot_id', 'robot_name', b'robot_name', 'tags', b'tags', 'time_captured', b'time_captured']) -> None:
...
global___ExportTabularDataResponse = ExportTabularDataResponse

Expand Down
500 changes: 251 additions & 249 deletions src/viam/gen/app/v1/app_pb2.py

Large diffs are not rendered by default.

45 changes: 38 additions & 7 deletions src/viam/gen/app/v1/app_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2099,6 +2099,25 @@ class FragmentError(google.protobuf.message.Message):
...
global___FragmentError = FragmentError

@typing.final
class FragmentUsage(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
FRAGMENT_ID_FIELD_NUMBER: builtins.int
ORGANIZATIONS_FIELD_NUMBER: builtins.int
MACHINES_FIELD_NUMBER: builtins.int
MACHINES_IN_CURRENT_ORG_FIELD_NUMBER: builtins.int
fragment_id: builtins.int
organizations: builtins.int
machines: builtins.int
machines_in_current_org: builtins.int

def __init__(self, *, fragment_id: builtins.int=..., organizations: builtins.int=..., machines: builtins.int=..., machines_in_current_org: builtins.int=...) -> None:
...

def ClearField(self, field_name: typing.Literal['fragment_id', b'fragment_id', 'machines', b'machines', 'machines_in_current_org', b'machines_in_current_org', 'organizations', b'organizations']) -> None:
...
global___FragmentUsage = FragmentUsage

@typing.final
class ResolvedFragment(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
Expand Down Expand Up @@ -2149,47 +2168,59 @@ global___ListFragmentsRequest = ListFragmentsRequest
class ListFragmentsResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
FRAGMENTS_FIELD_NUMBER: builtins.int
FRAGMENT_USAGES_FIELD_NUMBER: builtins.int

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

def __init__(self, *, fragments: collections.abc.Iterable[global___Fragment] | None=...) -> None:
@property
def fragment_usages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___FragmentUsage]:
...

def __init__(self, *, fragments: collections.abc.Iterable[global___Fragment] | None=..., fragment_usages: collections.abc.Iterable[global___FragmentUsage] | None=...) -> None:
...

def ClearField(self, field_name: typing.Literal['fragments', b'fragments']) -> None:
def ClearField(self, field_name: typing.Literal['fragment_usages', b'fragment_usages', 'fragments', b'fragments']) -> None:
...
global___ListFragmentsResponse = ListFragmentsResponse

@typing.final
class GetFragmentRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
ID_FIELD_NUMBER: builtins.int
CURRENT_ORGANIZATION_ID_FIELD_NUMBER: builtins.int
id: builtins.str
current_organization_id: builtins.str

def __init__(self, *, id: builtins.str=...) -> None:
def __init__(self, *, id: builtins.str=..., current_organization_id: builtins.str=...) -> None:
...

def ClearField(self, field_name: typing.Literal['id', b'id']) -> None:
def ClearField(self, field_name: typing.Literal['current_organization_id', b'current_organization_id', 'id', b'id']) -> None:
...
global___GetFragmentRequest = GetFragmentRequest

@typing.final
class GetFragmentResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor
FRAGMENT_FIELD_NUMBER: builtins.int
FRAGMENT_USAGE_FIELD_NUMBER: builtins.int

@property
def fragment(self) -> global___Fragment:
...

def __init__(self, *, fragment: global___Fragment | None=...) -> None:
@property
def fragment_usage(self) -> global___FragmentUsage:
...

def HasField(self, field_name: typing.Literal['fragment', b'fragment']) -> builtins.bool:
def __init__(self, *, fragment: global___Fragment | None=..., fragment_usage: global___FragmentUsage | None=...) -> None:
...

def ClearField(self, field_name: typing.Literal['fragment', b'fragment']) -> None:
def HasField(self, field_name: typing.Literal['fragment', b'fragment', 'fragment_usage', b'fragment_usage']) -> builtins.bool:
...

def ClearField(self, field_name: typing.Literal['fragment', b'fragment', 'fragment_usage', b'fragment_usage']) -> None:
...
global___GetFragmentResponse = GetFragmentResponse

Expand Down
Loading
Loading