Skip to content

Commit d78274d

Browse files
Automated Protos Update (#524)
Co-authored-by: viambot <[email protected]>
1 parent 4bfc2dc commit d78274d

File tree

6 files changed

+57
-0
lines changed

6 files changed

+57
-0
lines changed

src/viam/gen/service/generic/__init__.py

Whitespace-only changes.

src/viam/gen/service/generic/v1/__init__.py

Whitespace-only changes.
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
import abc
2+
import typing
3+
import grpclib.const
4+
import grpclib.client
5+
if typing.TYPE_CHECKING:
6+
import grpclib.server
7+
from .... import common
8+
import google.api.annotations_pb2
9+
from .... import service
10+
11+
class GenericServiceBase(abc.ABC):
12+
13+
@abc.abstractmethod
14+
async def DoCommand(self, stream: 'grpclib.server.Stream[common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse]') -> None:
15+
pass
16+
17+
def __mapping__(self) -> typing.Dict[str, grpclib.const.Handler]:
18+
return {'/viam.service.generic.v1.GenericService/DoCommand': grpclib.const.Handler(self.DoCommand, grpclib.const.Cardinality.UNARY_UNARY, common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)}
19+
20+
class GenericServiceStub:
21+
22+
def __init__(self, channel: grpclib.client.Channel) -> None:
23+
self.DoCommand = grpclib.client.UnaryUnaryMethod(channel, '/viam.service.generic.v1.GenericService/DoCommand', common.v1.common_pb2.DoCommandRequest, common.v1.common_pb2.DoCommandResponse)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""Generated protocol buffer code."""
2+
from google.protobuf.internal import builder as _builder
3+
from google.protobuf import descriptor as _descriptor
4+
from google.protobuf import descriptor_pool as _descriptor_pool
5+
from google.protobuf import symbol_database as _symbol_database
6+
_sym_db = _symbol_database.Default()
7+
from ....common.v1 import common_pb2 as common_dot_v1_dot_common__pb2
8+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
9+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n service/generic/v1/generic.proto\x12\x17viam.service.generic.v1\x1a\x16common/v1/common.proto\x1a\x1cgoogle/api/annotations.proto2\x9b\x01\n\x0eGenericService\x12\x88\x01\n\tDoCommand\x12 .viam.common.v1.DoCommandRequest\x1a!.viam.common.v1.DoCommandResponse"6\x82\xd3\xe4\x93\x020"./viam/api/v1/service/generic/{name}/do_commandBA\n\x1bcom.viam.service.generic.v1Z"go.viam.com/api/service/generic/v1b\x06proto3')
10+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals())
11+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'service.generic.v1.generic_pb2', globals())
12+
if _descriptor._USE_C_DESCRIPTORS == False:
13+
DESCRIPTOR._options = None
14+
DESCRIPTOR._serialized_options = b'\n\x1bcom.viam.service.generic.v1Z"go.viam.com/api/service/generic/v1'
15+
_GENERICSERVICE.methods_by_name['DoCommand']._options = None
16+
_GENERICSERVICE.methods_by_name['DoCommand']._serialized_options = b'\x82\xd3\xe4\x93\x020"./viam/api/v1/service/generic/{name}/do_command'
17+
_GENERICSERVICE._serialized_start = 116
18+
_GENERICSERVICE._serialized_end = 271
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
"""
2+
@generated by mypy-protobuf. Do not edit manually!
3+
isort:skip_file
4+
"""
5+
import google.protobuf.descriptor
6+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
"""
2+
@generated by Viam.
3+
Do not edit manually!
4+
"""
5+
from ....gen.service.generic.v1.generic_grpc import GenericServiceBase, GenericServiceStub
6+
7+
__all__ = [
8+
"GenericServiceBase",
9+
"GenericServiceStub",
10+
]

0 commit comments

Comments
 (0)