Skip to content

Commit a303cfd

Browse files
Automated Protos Update (#255)
Co-authored-by: viambot <[email protected]>
1 parent e085a7f commit a303cfd

File tree

2 files changed

+15
-13
lines changed

2 files changed

+15
-13
lines changed

src/viam/gen/service/mlmodel/v1/mlmodel_pb2.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
_sym_db = _symbol_database.Default()
77
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
88
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
9-
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')
9+
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')
1010
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
1111
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'service.mlmodel.v1.mlmodel_pb2', globals())
1212
if _descriptor._USE_C_DESCRIPTORS == False:
@@ -16,8 +16,8 @@
1616
_MLMODELSERVICE.methods_by_name['Infer']._serialized_options = b'\x82\xd3\xe4\x93\x02+")/viam/api/v1/service/mlmodel/{name}/infer'
1717
_MLMODELSERVICE.methods_by_name['Metadata']._options = None
1818
_MLMODELSERVICE.methods_by_name['Metadata']._serialized_options = b'\x82\xd3\xe4\x93\x02.\x12,/viam/api/v1/service/mlmodel/{name}/metadata'
19-
_LABELTYPE._serialized_start = 1004
20-
_LABELTYPE._serialized_end = 1100
19+
_LABELTYPE._serialized_start = 1005
20+
_LABELTYPE._serialized_end = 1101
2121
_INFERREQUEST._serialized_start = 121
2222
_INFERREQUEST._serialized_end = 211
2323
_INFERRESPONSE._serialized_start = 213
@@ -29,8 +29,8 @@
2929
_METADATA._serialized_start = 411
3030
_METADATA._serialized_end = 633
3131
_TENSORINFO._serialized_start = 636
32-
_TENSORINFO._serialized_end = 873
33-
_FILE._serialized_start = 875
34-
_FILE._serialized_end = 1002
35-
_MLMODELSERVICE._serialized_start = 1103
36-
_MLMODELSERVICE._serialized_end = 1411
32+
_TENSORINFO._serialized_end = 874
33+
_FILE._serialized_start = 876
34+
_FILE._serialized_end = 1003
35+
_MLMODELSERVICE._serialized_start = 1104
36+
_MLMODELSERVICE._serialized_end = 1412

src/viam/gen/service/mlmodel/v1/mlmodel_pb2.pyi

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ class TensorInfo(google.protobuf.message.Message):
148148
NAME_FIELD_NUMBER: builtins.int
149149
DESCRIPTION_FIELD_NUMBER: builtins.int
150150
DATA_TYPE_FIELD_NUMBER: builtins.int
151-
N_DIM_FIELD_NUMBER: builtins.int
151+
SHAPE_FIELD_NUMBER: builtins.int
152152
ASSOCIATED_FILES_FIELD_NUMBER: builtins.int
153153
EXTRA_FIELD_NUMBER: builtins.int
154154
name: builtins.str
@@ -157,8 +157,10 @@ class TensorInfo(google.protobuf.message.Message):
157157
'description of the data in the array/tensor'
158158
data_type: builtins.str
159159
'data type of the array/tensor, e.g. float32, float64, uint8'
160-
n_dim: builtins.int
161-
'number of dimensions in the array/tensor'
160+
161+
@property
162+
def shape(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
163+
"""shape of the array/tensor (-1 for unknown)"""
162164

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

171-
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:
173+
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:
172174
...
173175

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

177-
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:
179+
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:
178180
...
179181
global___TensorInfo = TensorInfo
180182

0 commit comments

Comments
 (0)