Skip to content

Automated Protos Update #255

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 10, 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
16 changes: 8 additions & 8 deletions src/viam/gen/service/mlmodel/v1/mlmodel_pb2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
_sym_db = _symbol_database.Default()
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n service/mlmodel/v1/mlmodel.proto\x12\x17viam.service.mlmodel.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"Z\n\x0cInferRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x126\n\ninput_data\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\tinputData"I\n\rInferResponse\x128\n\x0boutput_data\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\noutputData"%\n\x0fMetadataRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name"Q\n\x10MetadataResponse\x12=\n\x08metadata\x18\x01 \x01(\x0b2!.viam.service.mlmodel.v1.MetadataR\x08metadata"\xde\x01\n\x08Metadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12 \n\x0bdescription\x18\x03 \x01(\tR\x0bdescription\x12B\n\ninput_info\x18\x04 \x03(\x0b2#.viam.service.mlmodel.v1.TensorInfoR\tinputInfo\x12D\n\x0boutput_info\x18\x05 \x03(\x0b2#.viam.service.mlmodel.v1.TensorInfoR\noutputInfo"\xed\x01\n\nTensorInfo\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12 \n\x0bdescription\x18\x02 \x01(\tR\x0bdescription\x12\x1b\n\tdata_type\x18\x03 \x01(\tR\x08dataType\x12\x13\n\x05n_dim\x18\x04 \x01(\x05R\x04nDim\x12H\n\x10associated_files\x18\x05 \x03(\x0b2\x1d.viam.service.mlmodel.v1.FileR\x0fassociatedFiles\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x7f\n\x04File\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12 \n\x0bdescription\x18\x02 \x01(\tR\x0bdescription\x12A\n\nlabel_type\x18\x03 \x01(\x0e2".viam.service.mlmodel.v1.LabelTypeR\tlabelType*`\n\tLabelType\x12\x1a\n\x16LABEL_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17LABEL_TYPE_TENSOR_VALUE\x10\x01\x12\x1a\n\x16LABEL_TYPE_TENSOR_AXIS\x10\x022\xb4\x02\n\x0eMLModelService\x12\x89\x01\n\x05Infer\x12%.viam.service.mlmodel.v1.InferRequest\x1a&.viam.service.mlmodel.v1.InferResponse"1\x82\xd3\xe4\x93\x02+")/viam/api/v1/service/mlmodel/{name}/infer\x12\x95\x01\n\x08Metadata\x12(.viam.service.mlmodel.v1.MetadataRequest\x1a).viam.service.mlmodel.v1.MetadataResponse"4\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/service/mlmodel/{name}/metadataBA\n\x1bcom.viam.service.mlmodel.v1Z"go.viam.com/api/service/mlmodel/v1b\x06proto3')
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n service/mlmodel/v1/mlmodel.proto\x12\x17viam.service.mlmodel.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1cgoogle/protobuf/struct.proto"Z\n\x0cInferRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x126\n\ninput_data\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\tinputData"I\n\rInferResponse\x128\n\x0boutput_data\x18\x02 \x01(\x0b2\x17.google.protobuf.StructR\noutputData"%\n\x0fMetadataRequest\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name"Q\n\x10MetadataResponse\x12=\n\x08metadata\x18\x01 \x01(\x0b2!.viam.service.mlmodel.v1.MetadataR\x08metadata"\xde\x01\n\x08Metadata\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12\x12\n\x04type\x18\x02 \x01(\tR\x04type\x12 \n\x0bdescription\x18\x03 \x01(\tR\x0bdescription\x12B\n\ninput_info\x18\x04 \x03(\x0b2#.viam.service.mlmodel.v1.TensorInfoR\tinputInfo\x12D\n\x0boutput_info\x18\x05 \x03(\x0b2#.viam.service.mlmodel.v1.TensorInfoR\noutputInfo"\xee\x01\n\nTensorInfo\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12 \n\x0bdescription\x18\x02 \x01(\tR\x0bdescription\x12\x1b\n\tdata_type\x18\x03 \x01(\tR\x08dataType\x12\x14\n\x05shape\x18\x04 \x03(\x05R\x05shape\x12H\n\x10associated_files\x18\x05 \x03(\x0b2\x1d.viam.service.mlmodel.v1.FileR\x0fassociatedFiles\x12-\n\x05extra\x18c \x01(\x0b2\x17.google.protobuf.StructR\x05extra"\x7f\n\x04File\x12\x12\n\x04name\x18\x01 \x01(\tR\x04name\x12 \n\x0bdescription\x18\x02 \x01(\tR\x0bdescription\x12A\n\nlabel_type\x18\x03 \x01(\x0e2".viam.service.mlmodel.v1.LabelTypeR\tlabelType*`\n\tLabelType\x12\x1a\n\x16LABEL_TYPE_UNSPECIFIED\x10\x00\x12\x1b\n\x17LABEL_TYPE_TENSOR_VALUE\x10\x01\x12\x1a\n\x16LABEL_TYPE_TENSOR_AXIS\x10\x022\xb4\x02\n\x0eMLModelService\x12\x89\x01\n\x05Infer\x12%.viam.service.mlmodel.v1.InferRequest\x1a&.viam.service.mlmodel.v1.InferResponse"1\x82\xd3\xe4\x93\x02+")/viam/api/v1/service/mlmodel/{name}/infer\x12\x95\x01\n\x08Metadata\x12(.viam.service.mlmodel.v1.MetadataRequest\x1a).viam.service.mlmodel.v1.MetadataResponse"4\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/service/mlmodel/{name}/metadataBA\n\x1bcom.viam.service.mlmodel.v1Z"go.viam.com/api/service/mlmodel/v1b\x06proto3')
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'service.mlmodel.v1.mlmodel_pb2', globals())
if _descriptor._USE_C_DESCRIPTORS == False:
Expand All @@ -16,8 +16,8 @@
_MLMODELSERVICE.methods_by_name['Infer']._serialized_options = b'\x82\xd3\xe4\x93\x02+")/viam/api/v1/service/mlmodel/{name}/infer'
_MLMODELSERVICE.methods_by_name['Metadata']._options = None
_MLMODELSERVICE.methods_by_name['Metadata']._serialized_options = b'\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/service/mlmodel/{name}/metadata'
_LABELTYPE._serialized_start = 1004
_LABELTYPE._serialized_end = 1100
_LABELTYPE._serialized_start = 1005
_LABELTYPE._serialized_end = 1101
_INFERREQUEST._serialized_start = 121
_INFERREQUEST._serialized_end = 211
_INFERRESPONSE._serialized_start = 213
Expand All @@ -29,8 +29,8 @@
_METADATA._serialized_start = 411
_METADATA._serialized_end = 633
_TENSORINFO._serialized_start = 636
_TENSORINFO._serialized_end = 873
_FILE._serialized_start = 875
_FILE._serialized_end = 1002
_MLMODELSERVICE._serialized_start = 1103
_MLMODELSERVICE._serialized_end = 1411
_TENSORINFO._serialized_end = 874
_FILE._serialized_start = 876
_FILE._serialized_end = 1003
_MLMODELSERVICE._serialized_start = 1104
_MLMODELSERVICE._serialized_end = 1412
12 changes: 7 additions & 5 deletions src/viam/gen/service/mlmodel/v1/mlmodel_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ class TensorInfo(google.protobuf.message.Message):
NAME_FIELD_NUMBER: builtins.int
DESCRIPTION_FIELD_NUMBER: builtins.int
DATA_TYPE_FIELD_NUMBER: builtins.int
N_DIM_FIELD_NUMBER: builtins.int
SHAPE_FIELD_NUMBER: builtins.int
ASSOCIATED_FILES_FIELD_NUMBER: builtins.int
EXTRA_FIELD_NUMBER: builtins.int
name: builtins.str
Expand All @@ -157,8 +157,10 @@ class TensorInfo(google.protobuf.message.Message):
'description of the data in the array/tensor'
data_type: builtins.str
'data type of the array/tensor, e.g. float32, float64, uint8'
n_dim: builtins.int
'number of dimensions in the array/tensor'

@property
def shape(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
"""shape of the array/tensor (-1 for unknown)"""

@property
def associated_files(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___File]:
Expand All @@ -168,13 +170,13 @@ class TensorInfo(google.protobuf.message.Message):
def extra(self) -> google.protobuf.struct_pb2.Struct:
"""anything else you want to say"""

def __init__(self, *, name: builtins.str=..., description: builtins.str=..., data_type: builtins.str=..., n_dim: builtins.int=..., associated_files: collections.abc.Iterable[global___File] | None=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
def __init__(self, *, name: builtins.str=..., description: builtins.str=..., data_type: builtins.str=..., shape: collections.abc.Iterable[builtins.int] | None=..., associated_files: collections.abc.Iterable[global___File] | None=..., extra: google.protobuf.struct_pb2.Struct | None=...) -> None:
...

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

def ClearField(self, field_name: typing_extensions.Literal['associated_files', b'associated_files', 'data_type', b'data_type', 'description', b'description', 'extra', b'extra', 'n_dim', b'n_dim', 'name', b'name']) -> None:
def ClearField(self, field_name: typing_extensions.Literal['associated_files', b'associated_files', 'data_type', b'data_type', 'description', b'description', 'extra', b'extra', 'name', b'name', 'shape', b'shape']) -> None:
...
global___TensorInfo = TensorInfo

Expand Down