Skip to content

Commit

Permalink
Automated Protos Update (#314)
Browse files Browse the repository at this point in the history
Co-authored-by: viambot <[email protected]>
Co-authored-by: Cheuk Tse <[email protected]>
  • Loading branch information
3 people committed Jun 28, 2023
1 parent 97defd5 commit ef3cf3e
Show file tree
Hide file tree
Showing 27 changed files with 433 additions and 1,116 deletions.
190 changes: 99 additions & 91 deletions src/viam/gen/app/data/v1/data_pb2.py

Large diffs are not rendered by default.

200 changes: 94 additions & 106 deletions src/viam/gen/app/data/v1/data_pb2.pyi

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/viam/gen/app/datasync/v1/data_sync_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import google.protobuf.any_pb2
import google.protobuf.struct_pb2
import google.protobuf.timestamp_pb2
from .... import tagger
from .... import app

class DataSyncServiceBase(abc.ABC):
Expand Down
147 changes: 29 additions & 118 deletions src/viam/gen/app/datasync/v1/data_sync_pb2.py

Large diffs are not rendered by default.

183 changes: 5 additions & 178 deletions src/viam/gen/app/datasync/v1/data_sync_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,15 @@ class UploadMetadata(google.protobuf.message.Message):
PART_ID_FIELD_NUMBER: builtins.int
COMPONENT_TYPE_FIELD_NUMBER: builtins.int
COMPONENT_NAME_FIELD_NUMBER: builtins.int
COMPONENT_MODEL_FIELD_NUMBER: builtins.int
METHOD_NAME_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
FILE_NAME_FIELD_NUMBER: builtins.int
METHOD_PARAMETERS_FIELD_NUMBER: builtins.int
FILE_EXTENSION_FIELD_NUMBER: builtins.int
TAGS_FIELD_NUMBER: builtins.int
SESSION_ID_FIELD_NUMBER: builtins.int
part_id: builtins.str
component_type: builtins.str
component_name: builtins.str
component_model: builtins.str
method_name: builtins.str
type: global___DataType.ValueType
file_name: builtins.str
Expand All @@ -221,12 +218,11 @@ class UploadMetadata(google.protobuf.message.Message):
@property
def tags(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
...
session_id: builtins.str

def __init__(self, *, part_id: builtins.str=..., component_type: builtins.str=..., component_name: builtins.str=..., component_model: builtins.str=..., method_name: builtins.str=..., type: global___DataType.ValueType=..., file_name: builtins.str=..., method_parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=..., file_extension: builtins.str=..., tags: collections.abc.Iterable[builtins.str] | None=..., session_id: builtins.str=...) -> None:
def __init__(self, *, part_id: builtins.str=..., component_type: builtins.str=..., component_name: builtins.str=..., method_name: builtins.str=..., type: global___DataType.ValueType=..., file_name: builtins.str=..., method_parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=..., file_extension: builtins.str=..., tags: collections.abc.Iterable[builtins.str] | None=...) -> None:
...

def ClearField(self, field_name: typing_extensions.Literal['component_model', b'component_model', 'component_name', b'component_name', 'component_type', b'component_type', 'file_extension', b'file_extension', 'file_name', b'file_name', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'part_id', b'part_id', 'session_id', b'session_id', 'tags', b'tags', 'type', b'type']) -> None:
def ClearField(self, field_name: typing_extensions.Literal['component_name', b'component_name', 'component_type', b'component_type', 'file_extension', b'file_extension', 'file_name', b'file_name', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'part_id', b'part_id', 'tags', b'tags', 'type', b'type']) -> None:
...
global___UploadMetadata = UploadMetadata

Expand Down Expand Up @@ -279,16 +275,13 @@ class DataCaptureMetadata(google.protobuf.message.Message):
...
COMPONENT_TYPE_FIELD_NUMBER: builtins.int
COMPONENT_NAME_FIELD_NUMBER: builtins.int
COMPONENT_MODEL_FIELD_NUMBER: builtins.int
METHOD_NAME_FIELD_NUMBER: builtins.int
TYPE_FIELD_NUMBER: builtins.int
METHOD_PARAMETERS_FIELD_NUMBER: builtins.int
FILE_EXTENSION_FIELD_NUMBER: builtins.int
TAGS_FIELD_NUMBER: builtins.int
SESSION_ID_FIELD_NUMBER: builtins.int
component_type: builtins.str
component_name: builtins.str
component_model: builtins.str
method_name: builtins.str
type: global___DataType.ValueType

Expand All @@ -300,176 +293,10 @@ class DataCaptureMetadata(google.protobuf.message.Message):
@property
def tags(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
...
session_id: builtins.str

def __init__(self, *, component_type: builtins.str=..., component_name: builtins.str=..., component_model: builtins.str=..., method_name: builtins.str=..., type: global___DataType.ValueType=..., method_parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=..., file_extension: builtins.str=..., tags: collections.abc.Iterable[builtins.str] | None=..., session_id: builtins.str=...) -> None:
def __init__(self, *, component_type: builtins.str=..., component_name: builtins.str=..., method_name: builtins.str=..., type: global___DataType.ValueType=..., method_parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=..., file_extension: builtins.str=..., tags: collections.abc.Iterable[builtins.str] | None=...) -> None:
...

def ClearField(self, field_name: typing_extensions.Literal['component_model', b'component_model', 'component_name', b'component_name', 'component_type', b'component_type', 'file_extension', b'file_extension', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'session_id', b'session_id', 'tags', b'tags', 'type', b'type']) -> None:
def ClearField(self, field_name: typing_extensions.Literal['component_name', b'component_name', 'component_type', b'component_type', 'file_extension', b'file_extension', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'tags', b'tags', 'type', b'type']) -> None:
...
global___DataCaptureMetadata = DataCaptureMetadata

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

@typing_extensions.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_extensions.Literal['value', b'value']) -> builtins.bool:
...

def ClearField(self, field_name: typing_extensions.Literal['key', b'key', 'value', b'value']) -> None:
...
INTERVAL_FIELD_NUMBER: builtins.int
ORG_ID_FIELD_NUMBER: builtins.int
ROBOT_ID_FIELD_NUMBER: builtins.int
PART_ID_FIELD_NUMBER: builtins.int
LOCATION_ID_FIELD_NUMBER: builtins.int
COMPONENT_NAME_FIELD_NUMBER: builtins.int
COMPONENT_TYPE_FIELD_NUMBER: builtins.int
COMPONENT_MODEL_FIELD_NUMBER: builtins.int
METHOD_NAME_FIELD_NUMBER: builtins.int
BLOB_PATH_FIELD_NUMBER: builtins.int
COLUMN_NAMES_FIELD_NUMBER: builtins.int
METHOD_PARAMETERS_FIELD_NUMBER: builtins.int
FILE_ID_FIELD_NUMBER: builtins.int
TAGS_FIELD_NUMBER: builtins.int
MESSAGE_COUNT_FIELD_NUMBER: builtins.int
FILE_SIZE_BYTES_FIELD_NUMBER: builtins.int
SESSION_ID_FIELD_NUMBER: builtins.int
MIME_TYPE_FIELD_NUMBER: builtins.int
ID_FIELD_NUMBER: builtins.int

@property
def interval(self) -> global___CaptureInterval:
...
org_id: builtins.str
robot_id: builtins.str
part_id: builtins.str
location_id: builtins.str
component_name: builtins.str
component_type: builtins.str
component_model: builtins.str
method_name: builtins.str
blob_path: builtins.str

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

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

@property
def tags(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
...
message_count: builtins.int
file_size_bytes: builtins.int
session_id: builtins.str
mime_type: builtins.str
id: builtins.str

def __init__(self, *, interval: global___CaptureInterval | None=..., org_id: builtins.str=..., robot_id: builtins.str=..., part_id: builtins.str=..., location_id: builtins.str=..., component_name: builtins.str=..., component_type: builtins.str=..., component_model: builtins.str=..., method_name: builtins.str=..., blob_path: builtins.str=..., column_names: collections.abc.Iterable[builtins.str] | None=..., method_parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=..., file_id: builtins.str=..., tags: collections.abc.Iterable[builtins.str] | None=..., message_count: builtins.int=..., file_size_bytes: builtins.int=..., session_id: builtins.str=..., mime_type: builtins.str=..., id: builtins.str=...) -> None:
...

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

def ClearField(self, field_name: typing_extensions.Literal['blob_path', b'blob_path', 'column_names', b'column_names', 'component_model', b'component_model', 'component_name', b'component_name', 'component_type', b'component_type', 'file_id', b'file_id', 'file_size_bytes', b'file_size_bytes', 'id', b'id', 'interval', b'interval', 'location_id', b'location_id', 'message_count', b'message_count', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'mime_type', b'mime_type', 'org_id', b'org_id', 'part_id', b'part_id', 'robot_id', b'robot_id', 'session_id', b'session_id', 'tags', b'tags']) -> None:
...
global___TabularCapture = TabularCapture

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

@typing_extensions.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_extensions.Literal['value', b'value']) -> builtins.bool:
...

def ClearField(self, field_name: typing_extensions.Literal['key', b'key', 'value', b'value']) -> None:
...
INTERVAL_FIELD_NUMBER: builtins.int
ORG_ID_FIELD_NUMBER: builtins.int
ROBOT_ID_FIELD_NUMBER: builtins.int
PART_ID_FIELD_NUMBER: builtins.int
LOCATION_ID_FIELD_NUMBER: builtins.int
COMPONENT_NAME_FIELD_NUMBER: builtins.int
COMPONENT_TYPE_FIELD_NUMBER: builtins.int
COMPONENT_MODEL_FIELD_NUMBER: builtins.int
METHOD_NAME_FIELD_NUMBER: builtins.int
BLOB_PATH_FIELD_NUMBER: builtins.int
METHOD_PARAMETERS_FIELD_NUMBER: builtins.int
FILE_ID_FIELD_NUMBER: builtins.int
TAGS_FIELD_NUMBER: builtins.int
FILE_SIZE_BYTES_FIELD_NUMBER: builtins.int
SESSION_ID_FIELD_NUMBER: builtins.int
MIME_TYPE_FIELD_NUMBER: builtins.int
FILE_NAME_FIELD_NUMBER: builtins.int
FILE_EXT_FIELD_NUMBER: builtins.int
ID_FIELD_NUMBER: builtins.int

@property
def interval(self) -> global___CaptureInterval:
...
org_id: builtins.str
robot_id: builtins.str
part_id: builtins.str
location_id: builtins.str
component_name: builtins.str
component_type: builtins.str
component_model: builtins.str
method_name: builtins.str
blob_path: builtins.str

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

@property
def tags(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
...
file_size_bytes: builtins.int
session_id: builtins.str
mime_type: builtins.str
file_name: builtins.str
file_ext: builtins.str
id: builtins.str

def __init__(self, *, interval: global___CaptureInterval | None=..., org_id: builtins.str=..., robot_id: builtins.str=..., part_id: builtins.str=..., location_id: builtins.str=..., component_name: builtins.str=..., component_type: builtins.str=..., component_model: builtins.str=..., method_name: builtins.str=..., blob_path: builtins.str=..., method_parameters: collections.abc.Mapping[builtins.str, google.protobuf.any_pb2.Any] | None=..., file_id: builtins.str=..., tags: collections.abc.Iterable[builtins.str] | None=..., file_size_bytes: builtins.int=..., session_id: builtins.str=..., mime_type: builtins.str=..., file_name: builtins.str=..., file_ext: builtins.str=..., id: builtins.str=...) -> None:
...

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

def ClearField(self, field_name: typing_extensions.Literal['blob_path', b'blob_path', 'component_model', b'component_model', 'component_name', b'component_name', 'component_type', b'component_type', 'file_ext', b'file_ext', 'file_id', b'file_id', 'file_name', b'file_name', 'file_size_bytes', b'file_size_bytes', 'id', b'id', 'interval', b'interval', 'location_id', b'location_id', 'method_name', b'method_name', 'method_parameters', b'method_parameters', 'mime_type', b'mime_type', 'org_id', b'org_id', 'part_id', b'part_id', 'robot_id', b'robot_id', 'session_id', b'session_id', 'tags', b'tags']) -> None:
...
global___BinaryCapture = BinaryCapture
global___DataCaptureMetadata = DataCaptureMetadata
Empty file removed src/viam/gen/app/model/__init__.py
Empty file.
Empty file.
39 changes: 0 additions & 39 deletions src/viam/gen/app/model/v1/model_grpc.py

This file was deleted.

Loading

0 comments on commit ef3cf3e

Please sign in to comment.