From 34f1d9fe4385c4708a3019cdc99bc27845e2597a Mon Sep 17 00:00:00 2001 From: Michael Ou Date: Tue, 17 Dec 2024 09:21:05 -0600 Subject: [PATCH] update/arista,fmp: Migrate stubs to protobuf 5 Change-Id: Ib5500ac6d523d30e814c66fa87fcde1f6e5ffcf1 --- arista/alert/v1/alert_pb2.py | 34 +- arista/alert/v1/alert_pb2_grpc.py | 20 + arista/alert/v1/services/gen_pb2.py | 16 +- arista/alert/v1/services/gen_pb2_grpc.py | 564 +++-- arista/bugexposure/v1/bugexposure_pb2.py | 20 +- arista/bugexposure/v1/bugexposure_pb2_grpc.py | 20 + arista/bugexposure/v1/services/gen_pb2.py | 16 +- .../bugexposure/v1/services/gen_pb2_grpc.py | 111 +- arista/changecontrol/v1/changecontrol_pb2.py | 30 +- .../v1/changecontrol_pb2_grpc.py | 20 + arista/changecontrol/v1/services/gen_pb2.py | 16 +- .../changecontrol/v1/services/gen_pb2_grpc.py | 635 ++++-- arista/configlet/v1/configlet_pb2.py | 28 +- arista/configlet/v1/configlet_pb2_grpc.py | 20 + arista/configlet/v1/services/gen_pb2.py | 16 +- arista/configlet/v1/services/gen_pb2_grpc.py | 780 +++++-- arista/configstatus/v1/configstatus_pb2.py | 34 +- .../configstatus/v1/configstatus_pb2_grpc.py | 20 + arista/configstatus/v1/services/gen_pb2.py | 16 +- .../configstatus/v1/services/gen_pb2_grpc.py | 890 ++++++-- .../v1/connectivitymonitor_pb2.py | 24 +- .../v1/connectivitymonitor_pb2_grpc.py | 20 + .../v1/services/gen_pb2.py | 16 +- .../v1/services/gen_pb2_grpc.py | 310 ++- arista/dashboard/v1/dashboard_pb2.py | 24 +- arista/dashboard/v1/dashboard_pb2_grpc.py | 20 + arista/dashboard/v1/services/gen_pb2.py | 42 +- arista/dashboard/v1/services/gen_pb2.pyi | 68 - arista/dashboard/v1/services/gen_pb2_grpc.py | 557 +++-- .../v1/endpointlocation_pb2.py | 28 +- .../v1/endpointlocation_pb2_grpc.py | 20 + .../endpointlocation/v1/services/gen_pb2.py | 16 +- .../v1/services/gen_pb2_grpc.py | 165 +- arista/event/v1/event_pb2.py | 34 +- arista/event/v1/event_pb2_grpc.py | 20 + arista/event/v1/services/gen_pb2.py | 16 +- arista/event/v1/services/gen_pb2_grpc.py | 527 ++++- .../v1/identityprovider_pb2.py | 24 +- .../v1/identityprovider_pb2_grpc.py | 20 + .../identityprovider/v1/services/gen_pb2.py | 16 +- .../v1/services/gen_pb2_grpc.py | 490 ++++- arista/imagestatus/v1/imagestatus_pb2.py | 42 +- arista/imagestatus/v1/imagestatus_pb2_grpc.py | 20 + arista/imagestatus/v1/services/gen_pb2.py | 16 +- .../imagestatus/v1/services/gen_pb2_grpc.py | 165 +- arista/inventory/v1/inventory_pb2.py | 36 +- arista/inventory/v1/inventory_pb2_grpc.py | 20 + arista/inventory/v1/services/gen_pb2.py | 16 +- arista/inventory/v1/services/gen_pb2_grpc.py | 1070 +++++++--- arista/lifecycle/v1/lifecycle_pb2.py | 20 +- arista/lifecycle/v1/lifecycle_pb2_grpc.py | 20 + arista/lifecycle/v1/services/gen_pb2.py | 16 +- arista/lifecycle/v1/services/gen_pb2_grpc.py | 111 +- arista/redirector/v1/redirector_pb2.py | 20 +- arista/redirector/v1/redirector_pb2_grpc.py | 20 + arista/redirector/v1/services/gen_pb2.py | 16 +- arista/redirector/v1/services/gen_pb2_grpc.py | 165 +- .../serviceaccount/v1/serviceaccount_pb2.py | 28 +- .../v1/serviceaccount_pb2_grpc.py | 20 + arista/serviceaccount/v1/services/gen_pb2.py | 16 +- .../v1/services/gen_pb2_grpc.py | 636 ++++-- arista/studio/v1/services/gen_pb2.py | 16 +- arista/studio/v1/services/gen_pb2_grpc.py | 1830 +++++++++++++---- arista/studio/v1/studio_pb2.py | 48 +- arista/studio/v1/studio_pb2_grpc.py | 20 + arista/subscriptions/subscriptions_pb2.py | 16 +- .../subscriptions/subscriptions_pb2_grpc.py | 20 + arista/tag/v2/services/gen_pb2.py | 16 +- arista/tag/v2/services/gen_pb2_grpc.py | 780 +++++-- arista/tag/v2/tag_pb2.py | 28 +- arista/tag/v2/tag_pb2_grpc.py | 20 + arista/time/time_pb2.py | 16 +- arista/time/time_pb2_grpc.py | 20 + arista/workspace/v1/services/gen_pb2.py | 16 +- arista/workspace/v1/services/gen_pb2_grpc.py | 925 +++++++-- arista/workspace/v1/workspace_pb2.py | 42 +- arista/workspace/v1/workspace_pb2_grpc.py | 20 + fmp/__init__.py | 8 +- fmp/deletes_pb2.py | 16 +- fmp/deletes_pb2_grpc.py | 20 + fmp/extensions_pb2.py | 16 +- fmp/extensions_pb2_grpc.py | 20 + fmp/inet_pb2.py | 16 +- fmp/inet_pb2_grpc.py | 20 + fmp/pages_pb2.py | 16 +- fmp/pages_pb2_grpc.py | 20 + fmp/wrappers_pb2.py | 124 +- fmp/wrappers_pb2_grpc.py | 20 + fmp/yang_pb2.py | 16 +- fmp/yang_pb2_grpc.py | 20 + 90 files changed, 9662 insertions(+), 2739 deletions(-) diff --git a/arista/alert/v1/alert_pb2.py b/arista/alert/v1/alert_pb2.py index 7fe92166..21046da8 100644 --- a/arista/alert/v1/alert_pb2.py +++ b/arista/alert/v1/alert_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/alert.v1/alert.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/alert.v1/alert.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -24,26 +34,26 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.alert.v1.alert_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZBgithub.com/aristanetworks/cloudvision-go/api/arista/alert.v1;alert' - _globals['_ALERTCONFIG']._options = None + _globals['_ALERTCONFIG']._loaded_options = None _globals['_ALERTCONFIG']._serialized_options = b'\220\216\031\001\242\216\031\002rw' - _globals['_ALERT']._options = None + _globals['_ALERT']._loaded_options = None _globals['_ALERT']._serialized_options = b'\220\216\031\001\242\216\031\002ro' - _globals['_HTTPHEADERS_VALUESENTRY']._options = None + _globals['_HTTPHEADERS_VALUESENTRY']._loaded_options = None _globals['_HTTPHEADERS_VALUESENTRY']._serialized_options = b'8\001' - _globals['_CUEDATA_VALUESENTRY']._options = None + _globals['_CUEDATA_VALUESENTRY']._loaded_options = None _globals['_CUEDATA_VALUESENTRY']._serialized_options = b'8\001' - _globals['_INHIBITIONSETTINGS_VALUESENTRY']._options = None + _globals['_INHIBITIONSETTINGS_VALUESENTRY']._loaded_options = None _globals['_INHIBITIONSETTINGS_VALUESENTRY']._serialized_options = b'8\001' - _globals['_BROADCASTGROUPS_VALUESENTRY']._options = None + _globals['_BROADCASTGROUPS_VALUESENTRY']._loaded_options = None _globals['_BROADCASTGROUPS_VALUESENTRY']._serialized_options = b'8\001' - _globals['_TEMPLATEKEY']._options = None + _globals['_TEMPLATEKEY']._loaded_options = None _globals['_TEMPLATEKEY']._serialized_options = b'\200\216\031\001' - _globals['_TEMPLATECONFIG']._options = None + _globals['_TEMPLATECONFIG']._loaded_options = None _globals['_TEMPLATECONFIG']._serialized_options = b'\372\215\031\002rw\220\216\031\001' - _globals['_DEFAULTTEMPLATE']._options = None + _globals['_DEFAULTTEMPLATE']._loaded_options = None _globals['_DEFAULTTEMPLATE']._serialized_options = b'\372\215\031\002ro\220\216\031\001' _globals['_CONFIGERRORTYPE']._serialized_start=12978 _globals['_CONFIGERRORTYPE']._serialized_end=13259 diff --git a/arista/alert/v1/alert_pb2_grpc.py b/arista/alert/v1/alert_pb2_grpc.py index 2daafffe..4701f987 100644 --- a/arista/alert/v1/alert_pb2_grpc.py +++ b/arista/alert/v1/alert_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/alert.v1/alert_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/alert/v1/services/gen_pb2.py b/arista/alert/v1/services/gen_pb2.py index 8ed7fccd..ec02f907 100644 --- a/arista/alert/v1/services/gen_pb2.py +++ b/arista/alert/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/alert.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/alert.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -25,8 +35,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.alert.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZBgithub.com/aristanetworks/cloudvision-go/api/arista/alert.v1;alert' _globals['_METARESPONSE']._serialized_start=235 _globals['_METARESPONSE']._serialized_end=383 diff --git a/arista/alert/v1/services/gen_pb2_grpc.py b/arista/alert/v1/services/gen_pb2_grpc.py index ede0e05c..0a95abd1 100644 --- a/arista/alert/v1/services/gen_pb2_grpc.py +++ b/arista/alert/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.alert.v1.services import gen_pb2 as arista_dot_alert_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/alert.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class AlertServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,22 +38,22 @@ def __init__(self, channel): '/arista.alert.v1.AlertService/GetOne', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.alert.v1.AlertService/GetAll', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.alert.v1.AlertService/Subscribe', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.alert.v1.AlertService/SubscribeMeta', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) class AlertServiceServicer(object): @@ -90,6 +110,7 @@ def add_AlertServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.alert.v1.AlertService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.alert.v1.AlertService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -107,11 +128,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.alert.v1.AlertService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.alert.v1.AlertService/GetOne', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -124,11 +155,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.AlertService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.AlertService/GetAll', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -141,11 +182,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.AlertService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.AlertService/Subscribe', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -158,11 +209,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.AlertService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.AlertService/SubscribeMeta', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class AlertConfigServiceStub(object): @@ -178,27 +239,27 @@ def __init__(self, channel): '/arista.alert.v1.AlertConfigService/GetOne', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.alert.v1.AlertConfigService/GetAll', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.alert.v1.AlertConfigService/Subscribe', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.alert.v1.AlertConfigService/SubscribeMeta', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.alert.v1.AlertConfigService/Set', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigSetRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigSetResponse.FromString, - ) + _registered_method=True) class AlertConfigServiceServicer(object): @@ -266,6 +327,7 @@ def add_AlertConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.alert.v1.AlertConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.alert.v1.AlertConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -283,11 +345,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.alert.v1.AlertConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.alert.v1.AlertConfigService/GetOne', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -300,11 +372,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.AlertConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.AlertConfigService/GetAll', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -317,11 +399,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.AlertConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.AlertConfigService/Subscribe', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -334,11 +426,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.AlertConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.AlertConfigService/SubscribeMeta', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -351,11 +453,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.alert.v1.AlertConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.alert.v1.AlertConfigService/Set', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigSetRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.AlertConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class DefaultTemplateServiceStub(object): @@ -371,42 +483,42 @@ def __init__(self, channel): '/arista.alert.v1.DefaultTemplateService/GetOne', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.alert.v1.DefaultTemplateService/GetSome', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateSomeRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.alert.v1.DefaultTemplateService/GetAll', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.alert.v1.DefaultTemplateService/Subscribe', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.alert.v1.DefaultTemplateService/GetMeta', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.alert.v1.DefaultTemplateService/SubscribeMeta', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.alert.v1.DefaultTemplateService/GetAllBatched', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.alert.v1.DefaultTemplateService/SubscribeBatched', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateBatchedStreamResponse.FromString, - ) + _registered_method=True) class DefaultTemplateServiceServicer(object): @@ -507,6 +619,7 @@ def add_DefaultTemplateServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.alert.v1.DefaultTemplateService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.alert.v1.DefaultTemplateService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -524,11 +637,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.alert.v1.DefaultTemplateService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.alert.v1.DefaultTemplateService/GetOne', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -541,11 +664,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.DefaultTemplateService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.DefaultTemplateService/GetSome', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateSomeRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -558,11 +691,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.DefaultTemplateService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.DefaultTemplateService/GetAll', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -575,11 +718,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.DefaultTemplateService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.DefaultTemplateService/Subscribe', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -592,11 +745,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.alert.v1.DefaultTemplateService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.alert.v1.DefaultTemplateService/GetMeta', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -609,11 +772,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.DefaultTemplateService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.DefaultTemplateService/SubscribeMeta', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -626,11 +799,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.DefaultTemplateService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.DefaultTemplateService/GetAllBatched', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateBatchedStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -643,11 +826,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.DefaultTemplateService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.DefaultTemplateService/SubscribeBatched', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateBatchedStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.DefaultTemplateBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class TemplateConfigServiceStub(object): @@ -663,67 +856,67 @@ def __init__(self, channel): '/arista.alert.v1.TemplateConfigService/GetOne', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.alert.v1.TemplateConfigService/GetSome', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.alert.v1.TemplateConfigService/GetAll', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.alert.v1.TemplateConfigService/Subscribe', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.alert.v1.TemplateConfigService/GetMeta', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.alert.v1.TemplateConfigService/SubscribeMeta', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.alert.v1.TemplateConfigService/Set', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSetRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.alert.v1.TemplateConfigService/SetSome', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.alert.v1.TemplateConfigService/Delete', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.alert.v1.TemplateConfigService/DeleteSome', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.alert.v1.TemplateConfigService/DeleteAll', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.alert.v1.TemplateConfigService/GetAllBatched', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.alert.v1.TemplateConfigService/SubscribeBatched', request_serializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class TemplateConfigServiceServicer(object): @@ -879,6 +1072,7 @@ def add_TemplateConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.alert.v1.TemplateConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.alert.v1.TemplateConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -896,11 +1090,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.alert.v1.TemplateConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.alert.v1.TemplateConfigService/GetOne', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -913,11 +1117,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.TemplateConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.TemplateConfigService/GetSome', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSomeRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -930,11 +1144,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.TemplateConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.TemplateConfigService/GetAll', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -947,11 +1171,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.TemplateConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.TemplateConfigService/Subscribe', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -964,11 +1198,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.alert.v1.TemplateConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.alert.v1.TemplateConfigService/GetMeta', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -981,11 +1225,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.TemplateConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.TemplateConfigService/SubscribeMeta', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -998,11 +1252,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.alert.v1.TemplateConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.alert.v1.TemplateConfigService/Set', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSetRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -1015,11 +1279,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.TemplateConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.TemplateConfigService/SetSome', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSetSomeRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -1032,11 +1306,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.alert.v1.TemplateConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.alert.v1.TemplateConfigService/Delete', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -1049,11 +1333,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.TemplateConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.TemplateConfigService/DeleteSome', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteSomeRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1066,11 +1360,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.TemplateConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.TemplateConfigService/DeleteAll', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteAllRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1083,11 +1387,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.TemplateConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.TemplateConfigService/GetAllBatched', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigBatchedStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1100,8 +1414,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.alert.v1.TemplateConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.alert.v1.TemplateConfigService/SubscribeBatched', arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigBatchedStreamRequest.SerializeToString, arista_dot_alert_dot_v1_dot_services_dot_gen__pb2.TemplateConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/bugexposure/v1/bugexposure_pb2.py b/arista/bugexposure/v1/bugexposure_pb2.py index bc8263ef..0fbf3cf8 100644 --- a/arista/bugexposure/v1/bugexposure_pb2.py +++ b/arista/bugexposure/v1/bugexposure_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/bugexposure.v1/bugexposure.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/bugexposure.v1/bugexposure.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -22,12 +32,12 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.bugexposure.v1.bugexposure_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\031com.arista.bugexposure.v1B\013BugExposureP\001ZNgithub.com/aristanetworks/cloudvision-go/api/arista/bugexposure.v1;bugexposure' - _globals['_BUGEXPOSUREKEY']._options = None + _globals['_BUGEXPOSUREKEY']._loaded_options = None _globals['_BUGEXPOSUREKEY']._serialized_options = b'\200\216\031\001' - _globals['_BUGEXPOSURE']._options = None + _globals['_BUGEXPOSURE']._loaded_options = None _globals['_BUGEXPOSURE']._serialized_options = b'\372\215\031\002ro' _globals['_ACKNOWLEDGEMENT']._serialized_start=665 _globals['_ACKNOWLEDGEMENT']._serialized_end=785 diff --git a/arista/bugexposure/v1/bugexposure_pb2_grpc.py b/arista/bugexposure/v1/bugexposure_pb2_grpc.py index 2daafffe..a0bef8a0 100644 --- a/arista/bugexposure/v1/bugexposure_pb2_grpc.py +++ b/arista/bugexposure/v1/bugexposure_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/bugexposure.v1/bugexposure_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/bugexposure/v1/services/gen_pb2.py b/arista/bugexposure/v1/services/gen_pb2.py index b5f2380f..df1bb6a0 100644 --- a/arista/bugexposure/v1/services/gen_pb2.py +++ b/arista/bugexposure/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/bugexposure.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/bugexposure.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -24,8 +34,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.bugexposure.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\031com.arista.bugexposure.v1B\023BugExposureServicesP\001ZNgithub.com/aristanetworks/cloudvision-go/api/arista/bugexposure.v1;bugexposure' _globals['_METARESPONSE']._serialized_start=240 _globals['_METARESPONSE']._serialized_end=388 diff --git a/arista/bugexposure/v1/services/gen_pb2_grpc.py b/arista/bugexposure/v1/services/gen_pb2_grpc.py index 394da024..3772803f 100644 --- a/arista/bugexposure/v1/services/gen_pb2_grpc.py +++ b/arista/bugexposure/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.bugexposure.v1.services import gen_pb2 as arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/bugexposure.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class BugExposureServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,27 +38,27 @@ def __init__(self, channel): '/arista.bugexposure.v1.BugExposureService/GetOne', request_serializer=arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureRequest.SerializeToString, response_deserializer=arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.bugexposure.v1.BugExposureService/GetAll', request_serializer=arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamRequest.SerializeToString, response_deserializer=arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.bugexposure.v1.BugExposureService/Subscribe', request_serializer=arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamRequest.SerializeToString, response_deserializer=arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.bugexposure.v1.BugExposureService/GetMeta', request_serializer=arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamRequest.SerializeToString, response_deserializer=arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.bugexposure.v1.BugExposureService/SubscribeMeta', request_serializer=arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamRequest.SerializeToString, response_deserializer=arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) class BugExposureServiceServicer(object): @@ -106,6 +126,7 @@ def add_BugExposureServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.bugexposure.v1.BugExposureService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.bugexposure.v1.BugExposureService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -123,11 +144,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.bugexposure.v1.BugExposureService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.bugexposure.v1.BugExposureService/GetOne', arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureRequest.SerializeToString, arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -140,11 +171,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.bugexposure.v1.BugExposureService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.bugexposure.v1.BugExposureService/GetAll', arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamRequest.SerializeToString, arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -157,11 +198,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.bugexposure.v1.BugExposureService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.bugexposure.v1.BugExposureService/Subscribe', arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamRequest.SerializeToString, arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -174,11 +225,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.bugexposure.v1.BugExposureService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.bugexposure.v1.BugExposureService/GetMeta', arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamRequest.SerializeToString, arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -191,8 +252,18 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.bugexposure.v1.BugExposureService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.bugexposure.v1.BugExposureService/SubscribeMeta', arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.BugExposureStreamRequest.SerializeToString, arista_dot_bugexposure_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/changecontrol/v1/changecontrol_pb2.py b/arista/changecontrol/v1/changecontrol_pb2.py index 05f19845..ce98988d 100644 --- a/arista/changecontrol/v1/changecontrol_pb2.py +++ b/arista/changecontrol/v1/changecontrol_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/changecontrol.v1/changecontrol.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/changecontrol.v1/changecontrol.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -23,22 +33,22 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.changecontrol.v1.changecontrol_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZRgithub.com/aristanetworks/cloudvision-go/api/arista/changecontrol.v1;changecontrol' - _globals['_CHANGECONTROLKEY']._options = None + _globals['_CHANGECONTROLKEY']._loaded_options = None _globals['_CHANGECONTROLKEY']._serialized_options = b'\200\216\031\001' - _globals['_STAGECONFIGMAP_VALUESENTRY']._options = None + _globals['_STAGECONFIGMAP_VALUESENTRY']._loaded_options = None _globals['_STAGECONFIGMAP_VALUESENTRY']._serialized_options = b'8\001' - _globals['_CHANGECONTROLCONFIG']._options = None + _globals['_CHANGECONTROLCONFIG']._loaded_options = None _globals['_CHANGECONTROLCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_STAGEMAP_VALUESENTRY']._options = None + _globals['_STAGEMAP_VALUESENTRY']._loaded_options = None _globals['_STAGEMAP_VALUESENTRY']._serialized_options = b'8\001' - _globals['_DEVICETOSTAGEMAP_VALUESENTRY']._options = None + _globals['_DEVICETOSTAGEMAP_VALUESENTRY']._loaded_options = None _globals['_DEVICETOSTAGEMAP_VALUESENTRY']._serialized_options = b'8\001' - _globals['_CHANGECONTROL']._options = None + _globals['_CHANGECONTROL']._loaded_options = None _globals['_CHANGECONTROL']._serialized_options = b'\372\215\031\002ro\212\216\031\006Filter' - _globals['_APPROVECONFIG']._options = None + _globals['_APPROVECONFIG']._loaded_options = None _globals['_APPROVECONFIG']._serialized_options = b'\372\215\031\002rw' _globals['_STAGESTATUS']._serialized_start=3568 _globals['_STAGESTATUS']._serialized_end=3695 diff --git a/arista/changecontrol/v1/changecontrol_pb2_grpc.py b/arista/changecontrol/v1/changecontrol_pb2_grpc.py index 2daafffe..5ca01d6a 100644 --- a/arista/changecontrol/v1/changecontrol_pb2_grpc.py +++ b/arista/changecontrol/v1/changecontrol_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/changecontrol.v1/changecontrol_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/changecontrol/v1/services/gen_pb2.py b/arista/changecontrol/v1/services/gen_pb2.py index e6d1af93..877138ad 100644 --- a/arista/changecontrol/v1/services/gen_pb2.py +++ b/arista/changecontrol/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/changecontrol.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/changecontrol.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -25,8 +35,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.changecontrol.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZRgithub.com/aristanetworks/cloudvision-go/api/arista/changecontrol.v1;changecontrol' _globals['_METARESPONSE']._serialized_start=267 _globals['_METARESPONSE']._serialized_end=415 diff --git a/arista/changecontrol/v1/services/gen_pb2_grpc.py b/arista/changecontrol/v1/services/gen_pb2_grpc.py index ed27f133..9b819ba1 100644 --- a/arista/changecontrol/v1/services/gen_pb2_grpc.py +++ b/arista/changecontrol/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.changecontrol.v1.services import gen_pb2 as arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/changecontrol.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class ApproveConfigServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,67 +38,67 @@ def __init__(self, channel): '/arista.changecontrol.v1.ApproveConfigService/GetOne', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.changecontrol.v1.ApproveConfigService/GetSome', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.changecontrol.v1.ApproveConfigService/GetAll', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.changecontrol.v1.ApproveConfigService/Subscribe', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.changecontrol.v1.ApproveConfigService/GetMeta', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.changecontrol.v1.ApproveConfigService/SubscribeMeta', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.changecontrol.v1.ApproveConfigService/Set', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSetRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.changecontrol.v1.ApproveConfigService/SetSome', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.changecontrol.v1.ApproveConfigService/Delete', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.changecontrol.v1.ApproveConfigService/DeleteSome', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.changecontrol.v1.ApproveConfigService/DeleteAll', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.changecontrol.v1.ApproveConfigService/GetAllBatched', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.changecontrol.v1.ApproveConfigService/SubscribeBatched', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class ApproveConfigServiceServicer(object): @@ -234,6 +254,7 @@ def add_ApproveConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.changecontrol.v1.ApproveConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.changecontrol.v1.ApproveConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -251,11 +272,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.changecontrol.v1.ApproveConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/GetOne', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -268,11 +299,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ApproveConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/GetSome', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSomeRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -285,11 +326,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ApproveConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/GetAll', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -302,11 +353,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ApproveConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/Subscribe', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -319,11 +380,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.changecontrol.v1.ApproveConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/GetMeta', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -336,11 +407,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ApproveConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/SubscribeMeta', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -353,11 +434,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.changecontrol.v1.ApproveConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/Set', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSetRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -370,11 +461,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ApproveConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/SetSome', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSetSomeRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -387,11 +488,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.changecontrol.v1.ApproveConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/Delete', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -404,11 +515,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ApproveConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/DeleteSome', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteSomeRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -421,11 +542,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ApproveConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/DeleteAll', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteAllRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -438,11 +569,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ApproveConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/GetAllBatched', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigBatchedStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -455,11 +596,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ApproveConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ApproveConfigService/SubscribeBatched', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigBatchedStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ApproveConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class ChangeControlServiceStub(object): @@ -475,42 +626,42 @@ def __init__(self, channel): '/arista.changecontrol.v1.ChangeControlService/GetOne', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlService/GetSome', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlSomeRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlService/GetAll', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlService/Subscribe', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.changecontrol.v1.ChangeControlService/GetMeta', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlService/SubscribeMeta', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlService/GetAllBatched', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlService/SubscribeBatched', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlBatchedStreamResponse.FromString, - ) + _registered_method=True) class ChangeControlServiceServicer(object): @@ -611,6 +762,7 @@ def add_ChangeControlServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.changecontrol.v1.ChangeControlService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.changecontrol.v1.ChangeControlService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -628,11 +780,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.changecontrol.v1.ChangeControlService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.changecontrol.v1.ChangeControlService/GetOne', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -645,11 +807,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlService/GetSome', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlSomeRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -662,11 +834,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlService/GetAll', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -679,11 +861,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlService/Subscribe', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -696,11 +888,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.changecontrol.v1.ChangeControlService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.changecontrol.v1.ChangeControlService/GetMeta', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -713,11 +915,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlService/SubscribeMeta', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -730,11 +942,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlService/GetAllBatched', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlBatchedStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -747,11 +969,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlService/SubscribeBatched', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlBatchedStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class ChangeControlConfigServiceStub(object): @@ -767,67 +999,67 @@ def __init__(self, channel): '/arista.changecontrol.v1.ChangeControlConfigService/GetOne', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlConfigService/GetSome', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlConfigService/GetAll', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlConfigService/Subscribe', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.changecontrol.v1.ChangeControlConfigService/GetMeta', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlConfigService/SubscribeMeta', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.changecontrol.v1.ChangeControlConfigService/Set', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSetRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlConfigService/SetSome', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.changecontrol.v1.ChangeControlConfigService/Delete', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlConfigService/DeleteSome', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlConfigService/DeleteAll', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlConfigService/GetAllBatched', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.changecontrol.v1.ChangeControlConfigService/SubscribeBatched', request_serializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class ChangeControlConfigServiceServicer(object): @@ -983,6 +1215,7 @@ def add_ChangeControlConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.changecontrol.v1.ChangeControlConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.changecontrol.v1.ChangeControlConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1000,11 +1233,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/GetOne', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1017,11 +1260,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/GetSome', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSomeRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1034,11 +1287,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/GetAll', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1051,11 +1314,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/Subscribe', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1068,11 +1341,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/GetMeta', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1085,11 +1368,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/SubscribeMeta', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -1102,11 +1395,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/Set', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSetRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -1119,11 +1422,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/SetSome', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSetSomeRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -1136,11 +1449,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/Delete', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -1153,11 +1476,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/DeleteSome', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteSomeRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1170,11 +1503,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/DeleteAll', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteAllRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1187,11 +1530,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/GetAllBatched', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigBatchedStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1204,8 +1557,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.changecontrol.v1.ChangeControlConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.changecontrol.v1.ChangeControlConfigService/SubscribeBatched', arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigBatchedStreamRequest.SerializeToString, arista_dot_changecontrol_dot_v1_dot_services_dot_gen__pb2.ChangeControlConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/configlet/v1/configlet_pb2.py b/arista/configlet/v1/configlet_pb2.py index d2f7df5a..da816707 100644 --- a/arista/configlet/v1/configlet_pb2.py +++ b/arista/configlet/v1/configlet_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/configlet.v1/configlet.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/configlet.v1/configlet.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -23,20 +33,20 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.configlet.v1.configlet_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZJgithub.com/aristanetworks/cloudvision-go/api/arista/configlet.v1;configlet' - _globals['_CONFIGLETKEY']._options = None + _globals['_CONFIGLETKEY']._loaded_options = None _globals['_CONFIGLETKEY']._serialized_options = b'\200\216\031\001' - _globals['_CONFIGLET']._options = None + _globals['_CONFIGLET']._loaded_options = None _globals['_CONFIGLET']._serialized_options = b'\372\215\031\002ro\212\216\031\006Filter' - _globals['_CONFIGLETCONFIG']._options = None + _globals['_CONFIGLETCONFIG']._loaded_options = None _globals['_CONFIGLETCONFIG']._serialized_options = b'\372\215\031\002rw\212\216\031\006Filter' - _globals['_CONFIGLETASSIGNMENTKEY']._options = None + _globals['_CONFIGLETASSIGNMENTKEY']._loaded_options = None _globals['_CONFIGLETASSIGNMENTKEY']._serialized_options = b'\200\216\031\001' - _globals['_CONFIGLETASSIGNMENTCONFIG']._options = None + _globals['_CONFIGLETASSIGNMENTCONFIG']._loaded_options = None _globals['_CONFIGLETASSIGNMENTCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_CONFIGLETASSIGNMENT']._options = None + _globals['_CONFIGLETASSIGNMENT']._loaded_options = None _globals['_CONFIGLETASSIGNMENT']._serialized_options = b'\372\215\031\002ro' _globals['_MATCHPOLICY']._serialized_start=2444 _globals['_MATCHPOLICY']._serialized_end=2545 diff --git a/arista/configlet/v1/configlet_pb2_grpc.py b/arista/configlet/v1/configlet_pb2_grpc.py index 2daafffe..dd69abee 100644 --- a/arista/configlet/v1/configlet_pb2_grpc.py +++ b/arista/configlet/v1/configlet_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/configlet.v1/configlet_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/configlet/v1/services/gen_pb2.py b/arista/configlet/v1/services/gen_pb2.py index 2d3b89ee..0027f2b0 100644 --- a/arista/configlet/v1/services/gen_pb2.py +++ b/arista/configlet/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/configlet.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/configlet.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -25,8 +35,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.configlet.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZJgithub.com/aristanetworks/cloudvision-go/api/arista/configlet.v1;configlet' _globals['_METARESPONSE']._serialized_start=251 _globals['_METARESPONSE']._serialized_end=399 diff --git a/arista/configlet/v1/services/gen_pb2_grpc.py b/arista/configlet/v1/services/gen_pb2_grpc.py index 65862901..1aac5e70 100644 --- a/arista/configlet/v1/services/gen_pb2_grpc.py +++ b/arista/configlet/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.configlet.v1.services import gen_pb2 as arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/configlet.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class ConfigletServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,42 +38,42 @@ def __init__(self, channel): '/arista.configlet.v1.ConfigletService/GetOne', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.configlet.v1.ConfigletService/GetSome', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletSomeRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.configlet.v1.ConfigletService/GetAll', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.configlet.v1.ConfigletService/Subscribe', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.configlet.v1.ConfigletService/GetMeta', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.configlet.v1.ConfigletService/SubscribeMeta', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.configlet.v1.ConfigletService/GetAllBatched', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.configlet.v1.ConfigletService/SubscribeBatched', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletBatchedStreamResponse.FromString, - ) + _registered_method=True) class ConfigletServiceServicer(object): @@ -154,6 +174,7 @@ def add_ConfigletServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.configlet.v1.ConfigletService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.configlet.v1.ConfigletService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -171,11 +192,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletService/GetOne', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -188,11 +219,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletService/GetSome', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletSomeRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -205,11 +246,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletService/GetAll', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -222,11 +273,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletService/Subscribe', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -239,11 +300,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletService/GetMeta', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -256,11 +327,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletService/SubscribeMeta', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -273,11 +354,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletService/GetAllBatched', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletBatchedStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -290,11 +381,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletService/SubscribeBatched', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletBatchedStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class ConfigletAssignmentServiceStub(object): @@ -310,42 +411,42 @@ def __init__(self, channel): '/arista.configlet.v1.ConfigletAssignmentService/GetOne', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentService/GetSome', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentSomeRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentService/GetAll', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentService/Subscribe', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.configlet.v1.ConfigletAssignmentService/GetMeta', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentService/SubscribeMeta', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentService/GetAllBatched', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentService/SubscribeBatched', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentBatchedStreamResponse.FromString, - ) + _registered_method=True) class ConfigletAssignmentServiceServicer(object): @@ -446,6 +547,7 @@ def add_ConfigletAssignmentServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.configlet.v1.ConfigletAssignmentService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.configlet.v1.ConfigletAssignmentService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -463,11 +565,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletAssignmentService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentService/GetOne', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -480,11 +592,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentService/GetSome', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentSomeRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -497,11 +619,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentService/GetAll', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -514,11 +646,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentService/Subscribe', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -531,11 +673,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletAssignmentService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentService/GetMeta', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -548,11 +700,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentService/SubscribeMeta', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -565,11 +727,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentService/GetAllBatched', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentBatchedStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -582,11 +754,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentService/SubscribeBatched', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentBatchedStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class ConfigletAssignmentConfigServiceStub(object): @@ -602,67 +784,67 @@ def __init__(self, channel): '/arista.configlet.v1.ConfigletAssignmentConfigService/GetOne', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentConfigService/GetSome', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentConfigService/GetAll', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentConfigService/Subscribe', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.configlet.v1.ConfigletAssignmentConfigService/GetMeta', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentConfigService/SubscribeMeta', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.configlet.v1.ConfigletAssignmentConfigService/Set', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSetRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentConfigService/SetSome', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.configlet.v1.ConfigletAssignmentConfigService/Delete', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentConfigService/DeleteSome', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentConfigService/DeleteAll', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentConfigService/GetAllBatched', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.configlet.v1.ConfigletAssignmentConfigService/SubscribeBatched', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class ConfigletAssignmentConfigServiceServicer(object): @@ -818,6 +1000,7 @@ def add_ConfigletAssignmentConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.configlet.v1.ConfigletAssignmentConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.configlet.v1.ConfigletAssignmentConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -835,11 +1018,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/GetOne', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -852,11 +1045,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/GetSome', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSomeRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -869,11 +1072,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/GetAll', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -886,11 +1099,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/Subscribe', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -903,11 +1126,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/GetMeta', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -920,11 +1153,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/SubscribeMeta', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -937,11 +1180,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/Set', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSetRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -954,11 +1207,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/SetSome', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSetSomeRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -971,11 +1234,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/Delete', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -988,11 +1261,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/DeleteSome', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteSomeRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1005,11 +1288,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/DeleteAll', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteAllRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1022,11 +1315,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/GetAllBatched', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigBatchedStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1039,11 +1342,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletAssignmentConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletAssignmentConfigService/SubscribeBatched', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigBatchedStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletAssignmentConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class ConfigletConfigServiceStub(object): @@ -1059,67 +1372,67 @@ def __init__(self, channel): '/arista.configlet.v1.ConfigletConfigService/GetOne', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.configlet.v1.ConfigletConfigService/GetSome', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.configlet.v1.ConfigletConfigService/GetAll', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.configlet.v1.ConfigletConfigService/Subscribe', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.configlet.v1.ConfigletConfigService/GetMeta', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.configlet.v1.ConfigletConfigService/SubscribeMeta', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.configlet.v1.ConfigletConfigService/Set', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSetRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.configlet.v1.ConfigletConfigService/SetSome', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.configlet.v1.ConfigletConfigService/Delete', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.configlet.v1.ConfigletConfigService/DeleteSome', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.configlet.v1.ConfigletConfigService/DeleteAll', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.configlet.v1.ConfigletConfigService/GetAllBatched', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.configlet.v1.ConfigletConfigService/SubscribeBatched', request_serializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class ConfigletConfigServiceServicer(object): @@ -1275,6 +1588,7 @@ def add_ConfigletConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.configlet.v1.ConfigletConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.configlet.v1.ConfigletConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1292,11 +1606,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/GetOne', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1309,11 +1633,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/GetSome', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSomeRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1326,11 +1660,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/GetAll', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1343,11 +1687,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/Subscribe', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1360,11 +1714,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/GetMeta', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1377,11 +1741,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/SubscribeMeta', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -1394,11 +1768,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/Set', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSetRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -1411,11 +1795,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/SetSome', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSetSomeRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -1428,11 +1822,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configlet.v1.ConfigletConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/Delete', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -1445,11 +1849,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/DeleteSome', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteSomeRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1462,11 +1876,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/DeleteAll', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteAllRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1479,11 +1903,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/GetAllBatched', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigBatchedStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1496,8 +1930,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configlet.v1.ConfigletConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configlet.v1.ConfigletConfigService/SubscribeBatched', arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigBatchedStreamRequest.SerializeToString, arista_dot_configlet_dot_v1_dot_services_dot_gen__pb2.ConfigletConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/configstatus/v1/configstatus_pb2.py b/arista/configstatus/v1/configstatus_pb2.py index f00d7578..0b0c872d 100644 --- a/arista/configstatus/v1/configstatus_pb2.py +++ b/arista/configstatus/v1/configstatus_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/configstatus.v1/configstatus.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/configstatus.v1/configstatus.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -22,26 +32,26 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.configstatus.v1.configstatus_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\032com.arista.configstatus.v1B\014ConfigstatusP\001ZPgithub.com/aristanetworks/cloudvision-go/api/arista/configstatus.v1;configstatus' - _globals['_CONFIGKEY']._options = None + _globals['_CONFIGKEY']._loaded_options = None _globals['_CONFIGKEY']._serialized_options = b'\200\216\031\001' - _globals['_CONFIGURATION']._options = None + _globals['_CONFIGURATION']._loaded_options = None _globals['_CONFIGURATION']._serialized_options = b'\372\215\031\002ro' - _globals['_CONFIGDIFFKEY']._options = None + _globals['_CONFIGDIFFKEY']._loaded_options = None _globals['_CONFIGDIFFKEY']._serialized_options = b'\200\216\031\001' - _globals['_CONFIGDIFF']._options = None + _globals['_CONFIGDIFF']._loaded_options = None _globals['_CONFIGDIFF']._serialized_options = b'\372\215\031\002ro' - _globals['_SUMMARYKEY']._options = None + _globals['_SUMMARYKEY']._loaded_options = None _globals['_SUMMARYKEY']._serialized_options = b'\200\216\031\001' - _globals['_SUMMARY']._options = None + _globals['_SUMMARY']._loaded_options = None _globals['_SUMMARY']._serialized_options = b'\372\215\031\002ro' - _globals['_SECURITYPROFILE']._options = None + _globals['_SECURITYPROFILE']._loaded_options = None _globals['_SECURITYPROFILE']._serialized_options = b'\372\215\031\002ro' - _globals['_SECURITYPROFILEDIFFSUMMARY']._options = None + _globals['_SECURITYPROFILEDIFFSUMMARY']._loaded_options = None _globals['_SECURITYPROFILEDIFFSUMMARY']._serialized_options = b'\372\215\031\002ro' - _globals['_SECURITYPROFILEDIFF']._options = None + _globals['_SECURITYPROFILEDIFF']._loaded_options = None _globals['_SECURITYPROFILEDIFF']._serialized_options = b'\372\215\031\002ro' _globals['_ERRORCODE']._serialized_start=3793 _globals['_ERRORCODE']._serialized_end=3988 diff --git a/arista/configstatus/v1/configstatus_pb2_grpc.py b/arista/configstatus/v1/configstatus_pb2_grpc.py index 2daafffe..ba717618 100644 --- a/arista/configstatus/v1/configstatus_pb2_grpc.py +++ b/arista/configstatus/v1/configstatus_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/configstatus.v1/configstatus_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/configstatus/v1/services/gen_pb2.py b/arista/configstatus/v1/services/gen_pb2.py index fe86c8c0..e43502a7 100644 --- a/arista/configstatus/v1/services/gen_pb2.py +++ b/arista/configstatus/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/configstatus.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/configstatus.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -24,8 +34,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.configstatus.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\032com.arista.configstatus.v1B\024ConfigstatusServicesP\001ZPgithub.com/aristanetworks/cloudvision-go/api/arista/configstatus.v1;configstatus' _globals['_METARESPONSE']._serialized_start=244 _globals['_METARESPONSE']._serialized_end=392 diff --git a/arista/configstatus/v1/services/gen_pb2_grpc.py b/arista/configstatus/v1/services/gen_pb2_grpc.py index ef031a02..a79438fa 100644 --- a/arista/configstatus/v1/services/gen_pb2_grpc.py +++ b/arista/configstatus/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.configstatus.v1.services import gen_pb2 as arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/configstatus.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class ConfigDiffServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,42 +38,42 @@ def __init__(self, channel): '/arista.configstatus.v1.ConfigDiffService/GetOne', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.configstatus.v1.ConfigDiffService/GetSome', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffSomeRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.configstatus.v1.ConfigDiffService/GetAll', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.configstatus.v1.ConfigDiffService/Subscribe', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.configstatus.v1.ConfigDiffService/GetMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.configstatus.v1.ConfigDiffService/SubscribeMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.configstatus.v1.ConfigDiffService/GetAllBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.configstatus.v1.ConfigDiffService/SubscribeBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffBatchedStreamResponse.FromString, - ) + _registered_method=True) class ConfigDiffServiceServicer(object): @@ -154,6 +174,7 @@ def add_ConfigDiffServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.configstatus.v1.ConfigDiffService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.configstatus.v1.ConfigDiffService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -171,11 +192,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.ConfigDiffService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.ConfigDiffService/GetOne', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -188,11 +219,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigDiffService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigDiffService/GetSome', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffSomeRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -205,11 +246,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigDiffService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigDiffService/GetAll', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -222,11 +273,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigDiffService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigDiffService/Subscribe', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -239,11 +300,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.ConfigDiffService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.ConfigDiffService/GetMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -256,11 +327,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigDiffService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigDiffService/SubscribeMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -273,11 +354,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigDiffService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigDiffService/GetAllBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -290,11 +381,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigDiffService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigDiffService/SubscribeBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigDiffBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class ConfigurationServiceStub(object): @@ -310,42 +411,42 @@ def __init__(self, channel): '/arista.configstatus.v1.ConfigurationService/GetOne', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.configstatus.v1.ConfigurationService/GetSome', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationSomeRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.configstatus.v1.ConfigurationService/GetAll', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.configstatus.v1.ConfigurationService/Subscribe', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.configstatus.v1.ConfigurationService/GetMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.configstatus.v1.ConfigurationService/SubscribeMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.configstatus.v1.ConfigurationService/GetAllBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.configstatus.v1.ConfigurationService/SubscribeBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationBatchedStreamResponse.FromString, - ) + _registered_method=True) class ConfigurationServiceServicer(object): @@ -446,6 +547,7 @@ def add_ConfigurationServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.configstatus.v1.ConfigurationService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.configstatus.v1.ConfigurationService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -463,11 +565,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.ConfigurationService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.ConfigurationService/GetOne', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -480,11 +592,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigurationService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigurationService/GetSome', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationSomeRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -497,11 +619,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigurationService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigurationService/GetAll', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -514,11 +646,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigurationService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigurationService/Subscribe', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -531,11 +673,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.ConfigurationService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.ConfigurationService/GetMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -548,11 +700,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigurationService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigurationService/SubscribeMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -565,11 +727,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigurationService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigurationService/GetAllBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -582,11 +754,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.ConfigurationService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.ConfigurationService/SubscribeBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.ConfigurationBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class SecurityProfileServiceStub(object): @@ -602,42 +784,42 @@ def __init__(self, channel): '/arista.configstatus.v1.SecurityProfileService/GetOne', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileService/GetSome', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileSomeRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileService/GetAll', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileService/Subscribe', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.configstatus.v1.SecurityProfileService/GetMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileService/SubscribeMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileService/GetAllBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileService/SubscribeBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileBatchedStreamResponse.FromString, - ) + _registered_method=True) class SecurityProfileServiceServicer(object): @@ -738,6 +920,7 @@ def add_SecurityProfileServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.configstatus.v1.SecurityProfileService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.configstatus.v1.SecurityProfileService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -755,11 +938,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.SecurityProfileService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.SecurityProfileService/GetOne', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -772,11 +965,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileService/GetSome', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileSomeRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -789,11 +992,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileService/GetAll', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -806,11 +1019,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileService/Subscribe', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -823,11 +1046,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.SecurityProfileService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.SecurityProfileService/GetMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -840,11 +1073,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileService/SubscribeMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -857,11 +1100,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileService/GetAllBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -874,11 +1127,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileService/SubscribeBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class SecurityProfileDiffServiceStub(object): @@ -894,42 +1157,42 @@ def __init__(self, channel): '/arista.configstatus.v1.SecurityProfileDiffService/GetOne', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffService/GetSome', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSomeRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffService/GetAll', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffService/Subscribe', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.configstatus.v1.SecurityProfileDiffService/GetMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffService/SubscribeMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffService/GetAllBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffService/SubscribeBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffBatchedStreamResponse.FromString, - ) + _registered_method=True) class SecurityProfileDiffServiceServicer(object): @@ -1030,6 +1293,7 @@ def add_SecurityProfileDiffServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.configstatus.v1.SecurityProfileDiffService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.configstatus.v1.SecurityProfileDiffService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1047,11 +1311,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.SecurityProfileDiffService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffService/GetOne', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1064,11 +1338,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffService/GetSome', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSomeRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1081,11 +1365,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffService/GetAll', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1098,11 +1392,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffService/Subscribe', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1115,11 +1419,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.SecurityProfileDiffService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffService/GetMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1132,11 +1446,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffService/SubscribeMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1149,11 +1473,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffService/GetAllBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1166,11 +1500,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffService/SubscribeBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class SecurityProfileDiffSummaryServiceStub(object): @@ -1186,42 +1530,42 @@ def __init__(self, channel): '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetOne', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetSome', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummarySomeRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummarySomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetAll', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffSummaryService/Subscribe', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffSummaryService/SubscribeMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetAllBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.configstatus.v1.SecurityProfileDiffSummaryService/SubscribeBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryBatchedStreamResponse.FromString, - ) + _registered_method=True) class SecurityProfileDiffSummaryServiceServicer(object): @@ -1322,6 +1666,7 @@ def add_SecurityProfileDiffSummaryServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.configstatus.v1.SecurityProfileDiffSummaryService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.configstatus.v1.SecurityProfileDiffSummaryService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1339,11 +1684,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetOne', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1356,11 +1711,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetSome', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummarySomeRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummarySomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1373,11 +1738,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetAll', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1390,11 +1765,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffSummaryService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffSummaryService/Subscribe', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1407,11 +1792,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1424,11 +1819,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffSummaryService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffSummaryService/SubscribeMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1441,11 +1846,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffSummaryService/GetAllBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1458,11 +1873,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SecurityProfileDiffSummaryService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SecurityProfileDiffSummaryService/SubscribeBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SecurityProfileDiffSummaryBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class SummaryServiceStub(object): @@ -1478,42 +1903,42 @@ def __init__(self, channel): '/arista.configstatus.v1.SummaryService/GetOne', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.configstatus.v1.SummaryService/GetSome', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.configstatus.v1.SummaryService/GetAll', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.configstatus.v1.SummaryService/Subscribe', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.configstatus.v1.SummaryService/GetMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.configstatus.v1.SummaryService/SubscribeMeta', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.configstatus.v1.SummaryService/GetAllBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.configstatus.v1.SummaryService/SubscribeBatched', request_serializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, - ) + _registered_method=True) class SummaryServiceServicer(object): @@ -1614,6 +2039,7 @@ def add_SummaryServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.configstatus.v1.SummaryService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.configstatus.v1.SummaryService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1631,11 +2057,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.SummaryService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.SummaryService/GetOne', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1648,11 +2084,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SummaryService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SummaryService/GetSome', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1665,11 +2111,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SummaryService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SummaryService/GetAll', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1682,11 +2138,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SummaryService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SummaryService/Subscribe', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1699,11 +2165,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.configstatus.v1.SummaryService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.configstatus.v1.SummaryService/GetMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1716,11 +2192,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SummaryService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SummaryService/SubscribeMeta', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1733,11 +2219,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SummaryService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SummaryService/GetAllBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1750,8 +2246,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.configstatus.v1.SummaryService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.configstatus.v1.SummaryService/SubscribeBatched', arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, arista_dot_configstatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/connectivitymonitor/v1/connectivitymonitor_pb2.py b/arista/connectivitymonitor/v1/connectivitymonitor_pb2.py index 15aa4a7e..cf4f3190 100644 --- a/arista/connectivitymonitor/v1/connectivitymonitor_pb2.py +++ b/arista/connectivitymonitor/v1/connectivitymonitor_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/connectivitymonitor.v1/connectivitymonitor.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/connectivitymonitor.v1/connectivitymonitor.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,16 +31,16 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.connectivitymonitor.v1.connectivitymonitor_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z^github.com/aristanetworks/cloudvision-go/api/arista/connectivitymonitor.v1;connectivitymonitor' - _globals['_PROBEKEY']._options = None + _globals['_PROBEKEY']._loaded_options = None _globals['_PROBEKEY']._serialized_options = b'\200\216\031\001' - _globals['_PROBESTATSKEY']._options = None + _globals['_PROBESTATSKEY']._loaded_options = None _globals['_PROBESTATSKEY']._serialized_options = b'\200\216\031\001' - _globals['_PROBE']._options = None + _globals['_PROBE']._loaded_options = None _globals['_PROBE']._serialized_options = b'\372\215\031\002ro' - _globals['_PROBESTATS']._options = None + _globals['_PROBESTATS']._loaded_options = None _globals['_PROBESTATS']._serialized_options = b'\372\215\031\002ro' _globals['_PROBEKEY']._serialized_start=145 _globals['_PROBEKEY']._serialized_end=297 diff --git a/arista/connectivitymonitor/v1/connectivitymonitor_pb2_grpc.py b/arista/connectivitymonitor/v1/connectivitymonitor_pb2_grpc.py index 2daafffe..ca6e42c1 100644 --- a/arista/connectivitymonitor/v1/connectivitymonitor_pb2_grpc.py +++ b/arista/connectivitymonitor/v1/connectivitymonitor_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/connectivitymonitor.v1/connectivitymonitor_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/connectivitymonitor/v1/services/gen_pb2.py b/arista/connectivitymonitor/v1/services/gen_pb2.py index 5df686e1..99740889 100644 --- a/arista/connectivitymonitor/v1/services/gen_pb2.py +++ b/arista/connectivitymonitor/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/connectivitymonitor.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/connectivitymonitor.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -24,8 +34,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.connectivitymonitor.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z^github.com/aristanetworks/cloudvision-go/api/arista/connectivitymonitor.v1;connectivitymonitor' _globals['_METARESPONSE']._serialized_start=272 _globals['_METARESPONSE']._serialized_end=420 diff --git a/arista/connectivitymonitor/v1/services/gen_pb2_grpc.py b/arista/connectivitymonitor/v1/services/gen_pb2_grpc.py index c5380a02..c1151119 100644 --- a/arista/connectivitymonitor/v1/services/gen_pb2_grpc.py +++ b/arista/connectivitymonitor/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.connectivitymonitor.v1.services import gen_pb2 as arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/connectivitymonitor.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class ProbeServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,42 +38,42 @@ def __init__(self, channel): '/arista.connectivitymonitor.v1.ProbeService/GetOne', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeService/GetSome', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeSomeRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeService/GetAll', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeService/Subscribe', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.connectivitymonitor.v1.ProbeService/GetMeta', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeService/SubscribeMeta', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeService/GetAllBatched', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeService/SubscribeBatched', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeBatchedStreamResponse.FromString, - ) + _registered_method=True) class ProbeServiceServicer(object): @@ -154,6 +174,7 @@ def add_ProbeServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.connectivitymonitor.v1.ProbeService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.connectivitymonitor.v1.ProbeService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -171,11 +192,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.connectivitymonitor.v1.ProbeService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.connectivitymonitor.v1.ProbeService/GetOne', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -188,11 +219,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeService/GetSome', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeSomeRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -205,11 +246,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeService/GetAll', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -222,11 +273,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeService/Subscribe', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -239,11 +300,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.connectivitymonitor.v1.ProbeService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.connectivitymonitor.v1.ProbeService/GetMeta', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -256,11 +327,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeService/SubscribeMeta', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -273,11 +354,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeService/GetAllBatched', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeBatchedStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -290,11 +381,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeService/SubscribeBatched', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeBatchedStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class ProbeStatsServiceStub(object): @@ -310,42 +411,42 @@ def __init__(self, channel): '/arista.connectivitymonitor.v1.ProbeStatsService/GetOne', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeStatsService/GetSome', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsSomeRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeStatsService/GetAll', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeStatsService/Subscribe', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.connectivitymonitor.v1.ProbeStatsService/GetMeta', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeStatsService/SubscribeMeta', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeStatsService/GetAllBatched', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.connectivitymonitor.v1.ProbeStatsService/SubscribeBatched', request_serializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsBatchedStreamResponse.FromString, - ) + _registered_method=True) class ProbeStatsServiceServicer(object): @@ -446,6 +547,7 @@ def add_ProbeStatsServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.connectivitymonitor.v1.ProbeStatsService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.connectivitymonitor.v1.ProbeStatsService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -463,11 +565,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.connectivitymonitor.v1.ProbeStatsService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.connectivitymonitor.v1.ProbeStatsService/GetOne', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -480,11 +592,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeStatsService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeStatsService/GetSome', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsSomeRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -497,11 +619,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeStatsService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeStatsService/GetAll', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -514,11 +646,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeStatsService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeStatsService/Subscribe', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -531,11 +673,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.connectivitymonitor.v1.ProbeStatsService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.connectivitymonitor.v1.ProbeStatsService/GetMeta', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -548,11 +700,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeStatsService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeStatsService/SubscribeMeta', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -565,11 +727,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeStatsService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeStatsService/GetAllBatched', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsBatchedStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -582,8 +754,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.connectivitymonitor.v1.ProbeStatsService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.connectivitymonitor.v1.ProbeStatsService/SubscribeBatched', arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsBatchedStreamRequest.SerializeToString, arista_dot_connectivitymonitor_dot_v1_dot_services_dot_gen__pb2.ProbeStatsBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/dashboard/v1/dashboard_pb2.py b/arista/dashboard/v1/dashboard_pb2.py index a9c6088e..332bcfc3 100644 --- a/arista/dashboard/v1/dashboard_pb2.py +++ b/arista/dashboard/v1/dashboard_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/dashboard.v1/dashboard.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/dashboard.v1/dashboard.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -23,16 +33,16 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.dashboard.v1.dashboard_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZJgithub.com/aristanetworks/cloudvision-go/api/arista/dashboard.v1;dashboard' - _globals['_DASHBOARDKEY']._options = None + _globals['_DASHBOARDKEY']._loaded_options = None _globals['_DASHBOARDKEY']._serialized_options = b'\200\216\031\001' - _globals['_DASHBOARDCONFIG']._options = None + _globals['_DASHBOARDCONFIG']._loaded_options = None _globals['_DASHBOARDCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_DASHBOARD']._options = None + _globals['_DASHBOARD']._loaded_options = None _globals['_DASHBOARD']._serialized_options = b'\372\215\031\002ro\212\216\031\010[]Filter' - _globals['_GLOBALDASHBOARDCONFIG']._options = None + _globals['_GLOBALDASHBOARDCONFIG']._loaded_options = None _globals['_GLOBALDASHBOARDCONFIG']._serialized_options = b'\242\216\031\002rw' _globals['_POSITION']._serialized_start=167 _globals['_POSITION']._serialized_end=259 diff --git a/arista/dashboard/v1/dashboard_pb2_grpc.py b/arista/dashboard/v1/dashboard_pb2_grpc.py index 2daafffe..7b1d1455 100644 --- a/arista/dashboard/v1/dashboard_pb2_grpc.py +++ b/arista/dashboard/v1/dashboard_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/dashboard.v1/dashboard_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/dashboard/v1/services/gen_pb2.py b/arista/dashboard/v1/services/gen_pb2.py index d475f34e..94b2f65f 100644 --- a/arista/dashboard/v1/services/gen_pb2.py +++ b/arista/dashboard/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/dashboard.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/dashboard.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,13 +30,13 @@ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2 -DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&arista/dashboard.v1/services.gen.proto\x12\x13\x61rista.dashboard.v1\x1a#arista/dashboard.v1/dashboard.proto\x1a\x16\x61rista/time/time.proto\x1a(arista/subscriptions/subscriptions.proto\x1a\x11\x66mp/deletes.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x94\x01\n\x0cMetaResponse\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x04type\x18\x02 \x01(\x0e\x32\x1f.arista.subscriptions.Operation\x12+\n\x05\x63ount\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\"l\n\x10\x44\x61shboardRequest\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"l\n\x11\x44\x61shboardResponse\x12-\n\x05value\x18\x01 \x01(\x0b\x32\x1e.arista.dashboard.v1.Dashboard\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"q\n\x14\x44\x61shboardSomeRequest\x12/\n\x04keys\x18\x01 \x03(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9d\x01\n\x15\x44\x61shboardSomeResponse\x12-\n\x05value\x18\x01 \x01(\x0b\x32\x1e.arista.dashboard.v1.Dashboard\x12+\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12(\n\x04time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa7\x01\n\x16\x44\x61shboardStreamRequest\x12\x39\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32\x1e.arista.dashboard.v1.Dashboard\x12+\n\x06\x66ilter\x18\x02 \x03(\x0b\x32\x1b.arista.dashboard.v1.Filter\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\"\xa1\x01\n\x17\x44\x61shboardStreamResponse\x12-\n\x05value\x18\x01 \x01(\x0b\x32\x1e.arista.dashboard.v1.Dashboard\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x04type\x18\x03 \x01(\x0e\x32\x1f.arista.subscriptions.Operation\"\xe2\x01\n\x1d\x44\x61shboardBatchedStreamRequest\x12\x39\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32\x1e.arista.dashboard.v1.Dashboard\x12+\n\x06\x66ilter\x18\x02 \x03(\x0b\x32\x1b.arista.dashboard.v1.Filter\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\x12\x32\n\x0cmax_messages\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\"a\n\x1e\x44\x61shboardBatchedStreamResponse\x12?\n\tresponses\x18\x01 \x03(\x0b\x32,.arista.dashboard.v1.DashboardStreamResponse\"r\n\x16\x44\x61shboardConfigRequest\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"x\n\x17\x44\x61shboardConfigResponse\x12\x33\n\x05value\x18\x01 \x01(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x1a\x44\x61shboardConfigSomeRequest\x12/\n\x04keys\x18\x01 \x03(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa9\x01\n\x1b\x44\x61shboardConfigSomeResponse\x12\x33\n\x05value\x18\x01 \x01(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12+\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12(\n\x04time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x86\x01\n\x1c\x44\x61shboardConfigStreamRequest\x12?\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\"\xad\x01\n\x1d\x44\x61shboardConfigStreamResponse\x12\x33\n\x05value\x18\x01 \x01(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x04type\x18\x03 \x01(\x0e\x32\x1f.arista.subscriptions.Operation\"\xc1\x01\n#DashboardConfigBatchedStreamRequest\x12?\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\x12\x32\n\x0cmax_messages\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\"m\n$DashboardConfigBatchedStreamResponse\x12\x45\n\tresponses\x18\x01 \x03(\x0b\x32\x32.arista.dashboard.v1.DashboardConfigStreamResponse\"P\n\x19\x44\x61shboardConfigSetRequest\x12\x33\n\x05value\x18\x01 \x01(\x0b\x32$.arista.dashboard.v1.DashboardConfig\"{\n\x1a\x44\x61shboardConfigSetResponse\x12\x33\n\x05value\x18\x01 \x01(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"U\n\x1d\x44\x61shboardConfigSetSomeRequest\x12\x34\n\x06values\x18\x01 \x03(\x0b\x32$.arista.dashboard.v1.DashboardConfig\"_\n\x1e\x44\x61shboardConfigSetSomeResponse\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"N\n\x1c\x44\x61shboardConfigDeleteRequest\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\"y\n\x1d\x44\x61shboardConfigDeleteResponse\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"S\n DashboardConfigDeleteSomeRequest\x12/\n\x04keys\x18\x01 \x03(\x0b\x32!.arista.dashboard.v1.DashboardKey\"b\n!DashboardConfigDeleteSomeResponse\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"b\n\x1f\x44\x61shboardConfigDeleteAllRequest\x12?\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32$.arista.dashboard.v1.DashboardConfig\"\xc9\x01\n DashboardConfigDeleteAllResponse\x12\x1e\n\x04type\x18\x01 \x01(\x0e\x32\x10.fmp.DeleteError\x12+\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x03key\x18\x03 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"H\n\x1cGlobalDashboardConfigRequest\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x84\x01\n\x1dGlobalDashboardConfigResponse\x12\x39\n\x05value\x18\x01 \x01(\x0b\x32*.arista.dashboard.v1.GlobalDashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x92\x01\n\"GlobalDashboardConfigStreamRequest\x12\x45\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32*.arista.dashboard.v1.GlobalDashboardConfig\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\"\xb9\x01\n#GlobalDashboardConfigStreamResponse\x12\x39\n\x05value\x18\x01 \x01(\x0b\x32*.arista.dashboard.v1.GlobalDashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x04type\x18\x03 \x01(\x0e\x32\x1f.arista.subscriptions.Operation\"\xcd\x01\n)GlobalDashboardConfigBatchedStreamRequest\x12\x45\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32*.arista.dashboard.v1.GlobalDashboardConfig\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\x12\x32\n\x0cmax_messages\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\"y\n*GlobalDashboardConfigBatchedStreamResponse\x12K\n\tresponses\x18\x01 \x03(\x0b\x32\x38.arista.dashboard.v1.GlobalDashboardConfigStreamResponse\"\\\n\x1fGlobalDashboardConfigSetRequest\x12\x39\n\x05value\x18\x01 \x01(\x0b\x32*.arista.dashboard.v1.GlobalDashboardConfig\"\x87\x01\n GlobalDashboardConfigSetResponse\x12\x39\n\x05value\x18\x01 \x01(\x0b\x32*.arista.dashboard.v1.GlobalDashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xd9\x06\n\x10\x44\x61shboardService\x12W\n\x06GetOne\x12%.arista.dashboard.v1.DashboardRequest\x1a&.arista.dashboard.v1.DashboardResponse\x12\x62\n\x07GetSome\x12).arista.dashboard.v1.DashboardSomeRequest\x1a*.arista.dashboard.v1.DashboardSomeResponse0\x01\x12\x65\n\x06GetAll\x12+.arista.dashboard.v1.DashboardStreamRequest\x1a,.arista.dashboard.v1.DashboardStreamResponse0\x01\x12h\n\tSubscribe\x12+.arista.dashboard.v1.DashboardStreamRequest\x1a,.arista.dashboard.v1.DashboardStreamResponse0\x01\x12Y\n\x07GetMeta\x12+.arista.dashboard.v1.DashboardStreamRequest\x1a!.arista.dashboard.v1.MetaResponse\x12\x61\n\rSubscribeMeta\x12+.arista.dashboard.v1.DashboardStreamRequest\x1a!.arista.dashboard.v1.MetaResponse0\x01\x12z\n\rGetAllBatched\x12\x32.arista.dashboard.v1.DashboardBatchedStreamRequest\x1a\x33.arista.dashboard.v1.DashboardBatchedStreamResponse0\x01\x12}\n\x10SubscribeBatched\x12\x32.arista.dashboard.v1.DashboardBatchedStreamRequest\x1a\x33.arista.dashboard.v1.DashboardBatchedStreamResponse0\x01\x32\xff\x0b\n\x16\x44\x61shboardConfigService\x12\x63\n\x06GetOne\x12+.arista.dashboard.v1.DashboardConfigRequest\x1a,.arista.dashboard.v1.DashboardConfigResponse\x12n\n\x07GetSome\x12/.arista.dashboard.v1.DashboardConfigSomeRequest\x1a\x30.arista.dashboard.v1.DashboardConfigSomeResponse0\x01\x12q\n\x06GetAll\x12\x31.arista.dashboard.v1.DashboardConfigStreamRequest\x1a\x32.arista.dashboard.v1.DashboardConfigStreamResponse0\x01\x12t\n\tSubscribe\x12\x31.arista.dashboard.v1.DashboardConfigStreamRequest\x1a\x32.arista.dashboard.v1.DashboardConfigStreamResponse0\x01\x12_\n\x07GetMeta\x12\x31.arista.dashboard.v1.DashboardConfigStreamRequest\x1a!.arista.dashboard.v1.MetaResponse\x12g\n\rSubscribeMeta\x12\x31.arista.dashboard.v1.DashboardConfigStreamRequest\x1a!.arista.dashboard.v1.MetaResponse0\x01\x12\x66\n\x03Set\x12..arista.dashboard.v1.DashboardConfigSetRequest\x1a/.arista.dashboard.v1.DashboardConfigSetResponse\x12t\n\x07SetSome\x12\x32.arista.dashboard.v1.DashboardConfigSetSomeRequest\x1a\x33.arista.dashboard.v1.DashboardConfigSetSomeResponse0\x01\x12o\n\x06\x44\x65lete\x12\x31.arista.dashboard.v1.DashboardConfigDeleteRequest\x1a\x32.arista.dashboard.v1.DashboardConfigDeleteResponse\x12}\n\nDeleteSome\x12\x35.arista.dashboard.v1.DashboardConfigDeleteSomeRequest\x1a\x36.arista.dashboard.v1.DashboardConfigDeleteSomeResponse0\x01\x12z\n\tDeleteAll\x12\x34.arista.dashboard.v1.DashboardConfigDeleteAllRequest\x1a\x35.arista.dashboard.v1.DashboardConfigDeleteAllResponse0\x01\x12\x86\x01\n\rGetAllBatched\x12\x38.arista.dashboard.v1.DashboardConfigBatchedStreamRequest\x1a\x39.arista.dashboard.v1.DashboardConfigBatchedStreamResponse0\x01\x12\x89\x01\n\x10SubscribeBatched\x12\x38.arista.dashboard.v1.DashboardConfigBatchedStreamRequest\x1a\x39.arista.dashboard.v1.DashboardConfigBatchedStreamResponse0\x01\x32\xa1\x07\n\x1cGlobalDashboardConfigService\x12o\n\x06GetOne\x12\x31.arista.dashboard.v1.GlobalDashboardConfigRequest\x1a\x32.arista.dashboard.v1.GlobalDashboardConfigResponse\x12}\n\x06GetAll\x12\x37.arista.dashboard.v1.GlobalDashboardConfigStreamRequest\x1a\x38.arista.dashboard.v1.GlobalDashboardConfigStreamResponse0\x01\x12\x80\x01\n\tSubscribe\x12\x37.arista.dashboard.v1.GlobalDashboardConfigStreamRequest\x1a\x38.arista.dashboard.v1.GlobalDashboardConfigStreamResponse0\x01\x12m\n\rSubscribeMeta\x12\x37.arista.dashboard.v1.GlobalDashboardConfigStreamRequest\x1a!.arista.dashboard.v1.MetaResponse0\x01\x12r\n\x03Set\x12\x34.arista.dashboard.v1.GlobalDashboardConfigSetRequest\x1a\x35.arista.dashboard.v1.GlobalDashboardConfigSetResponse\x12\x92\x01\n\rGetAllBatched\x12>.arista.dashboard.v1.GlobalDashboardConfigBatchedStreamRequest\x1a?.arista.dashboard.v1.GlobalDashboardConfigBatchedStreamResponse0\x01\x12\x95\x01\n\x10SubscribeBatched\x12>.arista.dashboard.v1.GlobalDashboardConfigBatchedStreamRequest\x1a?.arista.dashboard.v1.GlobalDashboardConfigBatchedStreamResponse0\x01\x42LZJgithub.com/aristanetworks/cloudvision-go/api/arista/dashboard.v1;dashboardb\x06proto3') +DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&arista/dashboard.v1/services.gen.proto\x12\x13\x61rista.dashboard.v1\x1a#arista/dashboard.v1/dashboard.proto\x1a\x16\x61rista/time/time.proto\x1a(arista/subscriptions/subscriptions.proto\x1a\x11\x66mp/deletes.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\"\x94\x01\n\x0cMetaResponse\x12(\n\x04time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x04type\x18\x02 \x01(\x0e\x32\x1f.arista.subscriptions.Operation\x12+\n\x05\x63ount\x18\x03 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\"l\n\x10\x44\x61shboardRequest\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"l\n\x11\x44\x61shboardResponse\x12-\n\x05value\x18\x01 \x01(\x0b\x32\x1e.arista.dashboard.v1.Dashboard\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"q\n\x14\x44\x61shboardSomeRequest\x12/\n\x04keys\x18\x01 \x03(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x9d\x01\n\x15\x44\x61shboardSomeResponse\x12-\n\x05value\x18\x01 \x01(\x0b\x32\x1e.arista.dashboard.v1.Dashboard\x12+\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12(\n\x04time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa7\x01\n\x16\x44\x61shboardStreamRequest\x12\x39\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32\x1e.arista.dashboard.v1.Dashboard\x12+\n\x06\x66ilter\x18\x02 \x03(\x0b\x32\x1b.arista.dashboard.v1.Filter\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\"\xa1\x01\n\x17\x44\x61shboardStreamResponse\x12-\n\x05value\x18\x01 \x01(\x0b\x32\x1e.arista.dashboard.v1.Dashboard\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x04type\x18\x03 \x01(\x0e\x32\x1f.arista.subscriptions.Operation\"\xe2\x01\n\x1d\x44\x61shboardBatchedStreamRequest\x12\x39\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32\x1e.arista.dashboard.v1.Dashboard\x12+\n\x06\x66ilter\x18\x02 \x03(\x0b\x32\x1b.arista.dashboard.v1.Filter\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\x12\x32\n\x0cmax_messages\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\"a\n\x1e\x44\x61shboardBatchedStreamResponse\x12?\n\tresponses\x18\x01 \x03(\x0b\x32,.arista.dashboard.v1.DashboardStreamResponse\"r\n\x16\x44\x61shboardConfigRequest\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"x\n\x17\x44\x61shboardConfigResponse\x12\x33\n\x05value\x18\x01 \x01(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"w\n\x1a\x44\x61shboardConfigSomeRequest\x12/\n\x04keys\x18\x01 \x03(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xa9\x01\n\x1b\x44\x61shboardConfigSomeResponse\x12\x33\n\x05value\x18\x01 \x01(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12+\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12(\n\x04time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x86\x01\n\x1c\x44\x61shboardConfigStreamRequest\x12?\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\"\xad\x01\n\x1d\x44\x61shboardConfigStreamResponse\x12\x33\n\x05value\x18\x01 \x01(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x04type\x18\x03 \x01(\x0e\x32\x1f.arista.subscriptions.Operation\"\xc1\x01\n#DashboardConfigBatchedStreamRequest\x12?\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\x12\x32\n\x0cmax_messages\x18\x04 \x01(\x0b\x32\x1c.google.protobuf.UInt32Value\"m\n$DashboardConfigBatchedStreamResponse\x12\x45\n\tresponses\x18\x01 \x03(\x0b\x32\x32.arista.dashboard.v1.DashboardConfigStreamResponse\"P\n\x19\x44\x61shboardConfigSetRequest\x12\x33\n\x05value\x18\x01 \x01(\x0b\x32$.arista.dashboard.v1.DashboardConfig\"{\n\x1a\x44\x61shboardConfigSetResponse\x12\x33\n\x05value\x18\x01 \x01(\x0b\x32$.arista.dashboard.v1.DashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"U\n\x1d\x44\x61shboardConfigSetSomeRequest\x12\x34\n\x06values\x18\x01 \x03(\x0b\x32$.arista.dashboard.v1.DashboardConfig\"_\n\x1e\x44\x61shboardConfigSetSomeResponse\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"N\n\x1c\x44\x61shboardConfigDeleteRequest\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\"y\n\x1d\x44\x61shboardConfigDeleteResponse\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"S\n DashboardConfigDeleteSomeRequest\x12/\n\x04keys\x18\x01 \x03(\x0b\x32!.arista.dashboard.v1.DashboardKey\"b\n!DashboardConfigDeleteSomeResponse\x12.\n\x03key\x18\x01 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12\r\n\x05\x65rror\x18\x02 \x01(\t\"b\n\x1f\x44\x61shboardConfigDeleteAllRequest\x12?\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32$.arista.dashboard.v1.DashboardConfig\"\xc9\x01\n DashboardConfigDeleteAllResponse\x12\x1e\n\x04type\x18\x01 \x01(\x0e\x32\x10.fmp.DeleteError\x12+\n\x05\x65rror\x18\x02 \x01(\x0b\x32\x1c.google.protobuf.StringValue\x12.\n\x03key\x18\x03 \x01(\x0b\x32!.arista.dashboard.v1.DashboardKey\x12(\n\x04time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"H\n\x1cGlobalDashboardConfigRequest\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x84\x01\n\x1dGlobalDashboardConfigResponse\x12\x39\n\x05value\x18\x01 \x01(\x0b\x32*.arista.dashboard.v1.GlobalDashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x92\x01\n\"GlobalDashboardConfigStreamRequest\x12\x45\n\x11partial_eq_filter\x18\x01 \x03(\x0b\x32*.arista.dashboard.v1.GlobalDashboardConfig\x12%\n\x04time\x18\x03 \x01(\x0b\x32\x17.arista.time.TimeBounds\"\xb9\x01\n#GlobalDashboardConfigStreamResponse\x12\x39\n\x05value\x18\x01 \x01(\x0b\x32*.arista.dashboard.v1.GlobalDashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12-\n\x04type\x18\x03 \x01(\x0e\x32\x1f.arista.subscriptions.Operation\"\\\n\x1fGlobalDashboardConfigSetRequest\x12\x39\n\x05value\x18\x01 \x01(\x0b\x32*.arista.dashboard.v1.GlobalDashboardConfig\"\x87\x01\n GlobalDashboardConfigSetResponse\x12\x39\n\x05value\x18\x01 \x01(\x0b\x32*.arista.dashboard.v1.GlobalDashboardConfig\x12(\n\x04time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp2\xd9\x06\n\x10\x44\x61shboardService\x12W\n\x06GetOne\x12%.arista.dashboard.v1.DashboardRequest\x1a&.arista.dashboard.v1.DashboardResponse\x12\x62\n\x07GetSome\x12).arista.dashboard.v1.DashboardSomeRequest\x1a*.arista.dashboard.v1.DashboardSomeResponse0\x01\x12\x65\n\x06GetAll\x12+.arista.dashboard.v1.DashboardStreamRequest\x1a,.arista.dashboard.v1.DashboardStreamResponse0\x01\x12h\n\tSubscribe\x12+.arista.dashboard.v1.DashboardStreamRequest\x1a,.arista.dashboard.v1.DashboardStreamResponse0\x01\x12Y\n\x07GetMeta\x12+.arista.dashboard.v1.DashboardStreamRequest\x1a!.arista.dashboard.v1.MetaResponse\x12\x61\n\rSubscribeMeta\x12+.arista.dashboard.v1.DashboardStreamRequest\x1a!.arista.dashboard.v1.MetaResponse0\x01\x12z\n\rGetAllBatched\x12\x32.arista.dashboard.v1.DashboardBatchedStreamRequest\x1a\x33.arista.dashboard.v1.DashboardBatchedStreamResponse0\x01\x12}\n\x10SubscribeBatched\x12\x32.arista.dashboard.v1.DashboardBatchedStreamRequest\x1a\x33.arista.dashboard.v1.DashboardBatchedStreamResponse0\x01\x32\xff\x0b\n\x16\x44\x61shboardConfigService\x12\x63\n\x06GetOne\x12+.arista.dashboard.v1.DashboardConfigRequest\x1a,.arista.dashboard.v1.DashboardConfigResponse\x12n\n\x07GetSome\x12/.arista.dashboard.v1.DashboardConfigSomeRequest\x1a\x30.arista.dashboard.v1.DashboardConfigSomeResponse0\x01\x12q\n\x06GetAll\x12\x31.arista.dashboard.v1.DashboardConfigStreamRequest\x1a\x32.arista.dashboard.v1.DashboardConfigStreamResponse0\x01\x12t\n\tSubscribe\x12\x31.arista.dashboard.v1.DashboardConfigStreamRequest\x1a\x32.arista.dashboard.v1.DashboardConfigStreamResponse0\x01\x12_\n\x07GetMeta\x12\x31.arista.dashboard.v1.DashboardConfigStreamRequest\x1a!.arista.dashboard.v1.MetaResponse\x12g\n\rSubscribeMeta\x12\x31.arista.dashboard.v1.DashboardConfigStreamRequest\x1a!.arista.dashboard.v1.MetaResponse0\x01\x12\x66\n\x03Set\x12..arista.dashboard.v1.DashboardConfigSetRequest\x1a/.arista.dashboard.v1.DashboardConfigSetResponse\x12t\n\x07SetSome\x12\x32.arista.dashboard.v1.DashboardConfigSetSomeRequest\x1a\x33.arista.dashboard.v1.DashboardConfigSetSomeResponse0\x01\x12o\n\x06\x44\x65lete\x12\x31.arista.dashboard.v1.DashboardConfigDeleteRequest\x1a\x32.arista.dashboard.v1.DashboardConfigDeleteResponse\x12}\n\nDeleteSome\x12\x35.arista.dashboard.v1.DashboardConfigDeleteSomeRequest\x1a\x36.arista.dashboard.v1.DashboardConfigDeleteSomeResponse0\x01\x12z\n\tDeleteAll\x12\x34.arista.dashboard.v1.DashboardConfigDeleteAllRequest\x1a\x35.arista.dashboard.v1.DashboardConfigDeleteAllResponse0\x01\x12\x86\x01\n\rGetAllBatched\x12\x38.arista.dashboard.v1.DashboardConfigBatchedStreamRequest\x1a\x39.arista.dashboard.v1.DashboardConfigBatchedStreamResponse0\x01\x12\x89\x01\n\x10SubscribeBatched\x12\x38.arista.dashboard.v1.DashboardConfigBatchedStreamRequest\x1a\x39.arista.dashboard.v1.DashboardConfigBatchedStreamResponse0\x01\x32\xf4\x04\n\x1cGlobalDashboardConfigService\x12o\n\x06GetOne\x12\x31.arista.dashboard.v1.GlobalDashboardConfigRequest\x1a\x32.arista.dashboard.v1.GlobalDashboardConfigResponse\x12}\n\x06GetAll\x12\x37.arista.dashboard.v1.GlobalDashboardConfigStreamRequest\x1a\x38.arista.dashboard.v1.GlobalDashboardConfigStreamResponse0\x01\x12\x80\x01\n\tSubscribe\x12\x37.arista.dashboard.v1.GlobalDashboardConfigStreamRequest\x1a\x38.arista.dashboard.v1.GlobalDashboardConfigStreamResponse0\x01\x12m\n\rSubscribeMeta\x12\x37.arista.dashboard.v1.GlobalDashboardConfigStreamRequest\x1a!.arista.dashboard.v1.MetaResponse0\x01\x12r\n\x03Set\x12\x34.arista.dashboard.v1.GlobalDashboardConfigSetRequest\x1a\x35.arista.dashboard.v1.GlobalDashboardConfigSetResponseBLZJgithub.com/aristanetworks/cloudvision-go/api/arista/dashboard.v1;dashboardb\x06proto3') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.dashboard.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZJgithub.com/aristanetworks/cloudvision-go/api/arista/dashboard.v1;dashboard' _globals['_METARESPONSE']._serialized_start=251 _globals['_METARESPONSE']._serialized_end=399 @@ -90,18 +100,14 @@ _globals['_GLOBALDASHBOARDCONFIGSTREAMREQUEST']._serialized_end=4148 _globals['_GLOBALDASHBOARDCONFIGSTREAMRESPONSE']._serialized_start=4151 _globals['_GLOBALDASHBOARDCONFIGSTREAMRESPONSE']._serialized_end=4336 - _globals['_GLOBALDASHBOARDCONFIGBATCHEDSTREAMREQUEST']._serialized_start=4339 - _globals['_GLOBALDASHBOARDCONFIGBATCHEDSTREAMREQUEST']._serialized_end=4544 - _globals['_GLOBALDASHBOARDCONFIGBATCHEDSTREAMRESPONSE']._serialized_start=4546 - _globals['_GLOBALDASHBOARDCONFIGBATCHEDSTREAMRESPONSE']._serialized_end=4667 - _globals['_GLOBALDASHBOARDCONFIGSETREQUEST']._serialized_start=4669 - _globals['_GLOBALDASHBOARDCONFIGSETREQUEST']._serialized_end=4761 - _globals['_GLOBALDASHBOARDCONFIGSETRESPONSE']._serialized_start=4764 - _globals['_GLOBALDASHBOARDCONFIGSETRESPONSE']._serialized_end=4899 - _globals['_DASHBOARDSERVICE']._serialized_start=4902 - _globals['_DASHBOARDSERVICE']._serialized_end=5759 - _globals['_DASHBOARDCONFIGSERVICE']._serialized_start=5762 - _globals['_DASHBOARDCONFIGSERVICE']._serialized_end=7297 - _globals['_GLOBALDASHBOARDCONFIGSERVICE']._serialized_start=7300 - _globals['_GLOBALDASHBOARDCONFIGSERVICE']._serialized_end=8229 + _globals['_GLOBALDASHBOARDCONFIGSETREQUEST']._serialized_start=4338 + _globals['_GLOBALDASHBOARDCONFIGSETREQUEST']._serialized_end=4430 + _globals['_GLOBALDASHBOARDCONFIGSETRESPONSE']._serialized_start=4433 + _globals['_GLOBALDASHBOARDCONFIGSETRESPONSE']._serialized_end=4568 + _globals['_DASHBOARDSERVICE']._serialized_start=4571 + _globals['_DASHBOARDSERVICE']._serialized_end=5428 + _globals['_DASHBOARDCONFIGSERVICE']._serialized_start=5431 + _globals['_DASHBOARDCONFIGSERVICE']._serialized_end=6966 + _globals['_GLOBALDASHBOARDCONFIGSERVICE']._serialized_start=6969 + _globals['_GLOBALDASHBOARDCONFIGSERVICE']._serialized_end=7597 # @@protoc_insertion_point(module_scope) diff --git a/arista/dashboard/v1/services/gen_pb2.pyi b/arista/dashboard/v1/services/gen_pb2.pyi index 79a5a639..a5bd1afb 100644 --- a/arista/dashboard/v1/services/gen_pb2.pyi +++ b/arista/dashboard/v1/services/gen_pb2.pyi @@ -881,74 +881,6 @@ class GlobalDashboardConfigStreamResponse(google.protobuf.message.Message): def ClearField(self, field_name: typing_extensions.Literal["time",b"time","type",b"type","value",b"value"]) -> None: ... global___GlobalDashboardConfigStreamResponse = GlobalDashboardConfigStreamResponse -class GlobalDashboardConfigBatchedStreamRequest(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - PARTIAL_EQ_FILTER_FIELD_NUMBER: builtins.int - TIME_FIELD_NUMBER: builtins.int - MAX_MESSAGES_FIELD_NUMBER: builtins.int - @property - def partial_eq_filter(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig]: - """PartialEqFilter provides a way to server-side filter a GetAll/Subscribe. - This requires all provided fields to be equal to the response. - - While transparent to users, this field also allows services to optimize internal - subscriptions if filter(s) are sufficiently specific. - """ - pass - @property - def time(self) -> arista.time.time_pb2.TimeBounds: - """TimeRange allows limiting response data to within a specified time window. - If this field is populated, at least one of the two time fields are required. - - For GetAll, the fields start and end can be used as follows: - - * end: Returns the state of each GlobalDashboardConfig at end. - * Each GlobalDashboardConfig response is fully-specified (all fields set). - * start: Returns the state of each GlobalDashboardConfig at start, followed by updates until now. - * Each GlobalDashboardConfig response at start is fully-specified, but updates may be partial. - * start and end: Returns the state of each GlobalDashboardConfig at start, followed by updates - until end. - * Each GlobalDashboardConfig response at start is fully-specified, but updates until end may - be partial. - - This field is not allowed in the Subscribe RPC. - """ - pass - @property - def max_messages(self) -> google.protobuf.wrappers_pb2.UInt32Value: - """MaxMessages limits the maximum number of messages that can be contained in one batch. - MaxMessages is required to be at least 1. - The maximum number of messages in a batch is min(max_messages, INTERNAL_BATCH_LIMIT) - INTERNAL_BATCH_LIMIT is set based on the maximum message size. - """ - pass - def __init__(self, - *, - partial_eq_filter: typing.Optional[typing.Iterable[arista.dashboard.v1.dashboard_pb2.GlobalDashboardConfig]] = ..., - time: typing.Optional[arista.time.time_pb2.TimeBounds] = ..., - max_messages: typing.Optional[google.protobuf.wrappers_pb2.UInt32Value] = ..., - ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["max_messages",b"max_messages","time",b"time"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["max_messages",b"max_messages","partial_eq_filter",b"partial_eq_filter","time",b"time"]) -> None: ... -global___GlobalDashboardConfigBatchedStreamRequest = GlobalDashboardConfigBatchedStreamRequest - -class GlobalDashboardConfigBatchedStreamResponse(google.protobuf.message.Message): - DESCRIPTOR: google.protobuf.descriptor.Descriptor - RESPONSES_FIELD_NUMBER: builtins.int - @property - def responses(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___GlobalDashboardConfigStreamResponse]: - """Values are the values deemed relevant to the initiating request. - The length of this structure is guaranteed to be between (inclusive) 1 and - min(req.max_messages, INTERNAL_BATCH_LIMIT). - """ - pass - def __init__(self, - *, - responses: typing.Optional[typing.Iterable[global___GlobalDashboardConfigStreamResponse]] = ..., - ) -> None: ... - def ClearField(self, field_name: typing_extensions.Literal["responses",b"responses"]) -> None: ... -global___GlobalDashboardConfigBatchedStreamResponse = GlobalDashboardConfigBatchedStreamResponse - class GlobalDashboardConfigSetRequest(google.protobuf.message.Message): DESCRIPTOR: google.protobuf.descriptor.Descriptor VALUE_FIELD_NUMBER: builtins.int diff --git a/arista/dashboard/v1/services/gen_pb2_grpc.py b/arista/dashboard/v1/services/gen_pb2_grpc.py index 2f1fa83d..74576c91 100644 --- a/arista/dashboard/v1/services/gen_pb2_grpc.py +++ b/arista/dashboard/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.dashboard.v1.services import gen_pb2 as arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/dashboard.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class DashboardServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,42 +38,42 @@ def __init__(self, channel): '/arista.dashboard.v1.DashboardService/GetOne', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.dashboard.v1.DashboardService/GetSome', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardSomeRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.dashboard.v1.DashboardService/GetAll', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.dashboard.v1.DashboardService/Subscribe', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.dashboard.v1.DashboardService/GetMeta', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.dashboard.v1.DashboardService/SubscribeMeta', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.dashboard.v1.DashboardService/GetAllBatched', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.dashboard.v1.DashboardService/SubscribeBatched', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardBatchedStreamResponse.FromString, - ) + _registered_method=True) class DashboardServiceServicer(object): @@ -154,6 +174,7 @@ def add_DashboardServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.dashboard.v1.DashboardService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.dashboard.v1.DashboardService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -171,11 +192,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.dashboard.v1.DashboardService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.dashboard.v1.DashboardService/GetOne', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -188,11 +219,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardService/GetSome', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardSomeRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -205,11 +246,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardService/GetAll', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -222,11 +273,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardService/Subscribe', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -239,11 +300,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.dashboard.v1.DashboardService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.dashboard.v1.DashboardService/GetMeta', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -256,11 +327,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardService/SubscribeMeta', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -273,11 +354,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardService/GetAllBatched', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardBatchedStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -290,11 +381,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardService/SubscribeBatched', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardBatchedStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class DashboardConfigServiceStub(object): @@ -310,67 +411,67 @@ def __init__(self, channel): '/arista.dashboard.v1.DashboardConfigService/GetOne', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.dashboard.v1.DashboardConfigService/GetSome', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.dashboard.v1.DashboardConfigService/GetAll', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.dashboard.v1.DashboardConfigService/Subscribe', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.dashboard.v1.DashboardConfigService/GetMeta', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.dashboard.v1.DashboardConfigService/SubscribeMeta', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.dashboard.v1.DashboardConfigService/Set', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.dashboard.v1.DashboardConfigService/SetSome', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.dashboard.v1.DashboardConfigService/Delete', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.dashboard.v1.DashboardConfigService/DeleteSome', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.dashboard.v1.DashboardConfigService/DeleteAll', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.dashboard.v1.DashboardConfigService/GetAllBatched', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.dashboard.v1.DashboardConfigService/SubscribeBatched', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class DashboardConfigServiceServicer(object): @@ -526,6 +627,7 @@ def add_DashboardConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.dashboard.v1.DashboardConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.dashboard.v1.DashboardConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -543,11 +645,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.dashboard.v1.DashboardConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/GetOne', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -560,11 +672,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/GetSome', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSomeRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -577,11 +699,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/GetAll', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -594,11 +726,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/Subscribe', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -611,11 +753,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.dashboard.v1.DashboardConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/GetMeta', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -628,11 +780,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/SubscribeMeta', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -645,11 +807,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.dashboard.v1.DashboardConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/Set', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -662,11 +834,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/SetSome', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetSomeRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -679,11 +861,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.dashboard.v1.DashboardConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/Delete', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -696,11 +888,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/DeleteSome', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteSomeRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -713,11 +915,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/DeleteAll', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteAllRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -730,11 +942,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/GetAllBatched', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigBatchedStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -747,11 +969,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.DashboardConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.DashboardConfigService/SubscribeBatched', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigBatchedStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.DashboardConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class GlobalDashboardConfigServiceStub(object): @@ -767,37 +999,27 @@ def __init__(self, channel): '/arista.dashboard.v1.GlobalDashboardConfigService/GetOne', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.dashboard.v1.GlobalDashboardConfigService/GetAll', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.dashboard.v1.GlobalDashboardConfigService/Subscribe', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.dashboard.v1.GlobalDashboardConfigService/SubscribeMeta', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.dashboard.v1.GlobalDashboardConfigService/Set', request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetRequest.SerializeToString, response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetResponse.FromString, - ) - self.GetAllBatched = channel.unary_stream( - '/arista.dashboard.v1.GlobalDashboardConfigService/GetAllBatched', - request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamRequest.SerializeToString, - response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamResponse.FromString, - ) - self.SubscribeBatched = channel.unary_stream( - '/arista.dashboard.v1.GlobalDashboardConfigService/SubscribeBatched', - request_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamRequest.SerializeToString, - response_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class GlobalDashboardConfigServiceServicer(object): @@ -833,18 +1055,6 @@ def Set(self, request, context): context.set_details('Method not implemented!') raise NotImplementedError('Method not implemented!') - def GetAllBatched(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - - def SubscribeBatched(self, request, context): - """Missing associated documentation comment in .proto file.""" - context.set_code(grpc.StatusCode.UNIMPLEMENTED) - context.set_details('Method not implemented!') - raise NotImplementedError('Method not implemented!') - def add_GlobalDashboardConfigServiceServicer_to_server(servicer, server): rpc_method_handlers = { @@ -873,20 +1083,11 @@ def add_GlobalDashboardConfigServiceServicer_to_server(servicer, server): request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetRequest.FromString, response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetResponse.SerializeToString, ), - 'GetAllBatched': grpc.unary_stream_rpc_method_handler( - servicer.GetAllBatched, - request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamRequest.FromString, - response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamResponse.SerializeToString, - ), - 'SubscribeBatched': grpc.unary_stream_rpc_method_handler( - servicer.SubscribeBatched, - request_deserializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamRequest.FromString, - response_serializer=arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamResponse.SerializeToString, - ), } generic_handler = grpc.method_handlers_generic_handler( 'arista.dashboard.v1.GlobalDashboardConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.dashboard.v1.GlobalDashboardConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -904,11 +1105,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.dashboard.v1.GlobalDashboardConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.dashboard.v1.GlobalDashboardConfigService/GetOne', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -921,11 +1132,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.GlobalDashboardConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.GlobalDashboardConfigService/GetAll', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -938,11 +1159,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.GlobalDashboardConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.GlobalDashboardConfigService/Subscribe', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -955,11 +1186,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.GlobalDashboardConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.dashboard.v1.GlobalDashboardConfigService/SubscribeMeta', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigStreamRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -972,42 +1213,18 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.dashboard.v1.GlobalDashboardConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.dashboard.v1.GlobalDashboardConfigService/Set', arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetRequest.SerializeToString, arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def GetAllBatched(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.GlobalDashboardConfigService/GetAllBatched', - arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamRequest.SerializeToString, - arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) - - @staticmethod - def SubscribeBatched(request, - target, - options=(), - channel_credentials=None, - call_credentials=None, - insecure=False, - compression=None, - wait_for_ready=None, - timeout=None, - metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.dashboard.v1.GlobalDashboardConfigService/SubscribeBatched', - arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamRequest.SerializeToString, - arista_dot_dashboard_dot_v1_dot_services_dot_gen__pb2.GlobalDashboardConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/endpointlocation/v1/endpointlocation_pb2.py b/arista/endpointlocation/v1/endpointlocation_pb2.py index 056ecf84..f75ecaf3 100644 --- a/arista/endpointlocation/v1/endpointlocation_pb2.py +++ b/arista/endpointlocation/v1/endpointlocation_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/endpointlocation.v1/endpointlocation.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/endpointlocation.v1/endpointlocation.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -23,20 +33,20 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.endpointlocation.v1.endpointlocation_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZXgithub.com/aristanetworks/cloudvision-go/api/arista/endpointlocation.v1;endpointlocation' - _globals['_IDENTIFIERTYPE'].values_by_name["IDENTIFIER_TYPE_USERNAME"]._options = None + _globals['_IDENTIFIERTYPE'].values_by_name["IDENTIFIER_TYPE_USERNAME"]._loaded_options = None _globals['_IDENTIFIERTYPE'].values_by_name["IDENTIFIER_TYPE_USERNAME"]._serialized_options = b'\010\001' - _globals['_IDENTIFIERSOURCE'].values_by_name["IDENTIFIER_SOURCE_WIFI"]._options = None + _globals['_IDENTIFIERSOURCE'].values_by_name["IDENTIFIER_SOURCE_WIFI"]._loaded_options = None _globals['_IDENTIFIERSOURCE'].values_by_name["IDENTIFIER_SOURCE_WIFI"]._serialized_options = b'\010\001' - _globals['_DEVICETYPE'].values_by_name["DEVICE_TYPE_WIFI_ENDPOINT"]._options = None + _globals['_DEVICETYPE'].values_by_name["DEVICE_TYPE_WIFI_ENDPOINT"]._loaded_options = None _globals['_DEVICETYPE'].values_by_name["DEVICE_TYPE_WIFI_ENDPOINT"]._serialized_options = b'\010\001' - _globals['_DEVICEMAP_VALUESENTRY']._options = None + _globals['_DEVICEMAP_VALUESENTRY']._loaded_options = None _globals['_DEVICEMAP_VALUESENTRY']._serialized_options = b'8\001' - _globals['_ENDPOINTLOCATIONKEY']._options = None + _globals['_ENDPOINTLOCATIONKEY']._loaded_options = None _globals['_ENDPOINTLOCATIONKEY']._serialized_options = b'\200\216\031\001' - _globals['_ENDPOINTLOCATION']._options = None + _globals['_ENDPOINTLOCATION']._loaded_options = None _globals['_ENDPOINTLOCATION']._serialized_options = b'\372\215\031\002ro' _globals['_MACTYPE']._serialized_start=2328 _globals['_MACTYPE']._serialized_end=3169 diff --git a/arista/endpointlocation/v1/endpointlocation_pb2_grpc.py b/arista/endpointlocation/v1/endpointlocation_pb2_grpc.py index 2daafffe..5c4838a3 100644 --- a/arista/endpointlocation/v1/endpointlocation_pb2_grpc.py +++ b/arista/endpointlocation/v1/endpointlocation_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/endpointlocation.v1/endpointlocation_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/endpointlocation/v1/services/gen_pb2.py b/arista/endpointlocation/v1/services/gen_pb2.py index 8fa8f749..def53879 100644 --- a/arista/endpointlocation/v1/services/gen_pb2.py +++ b/arista/endpointlocation/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/endpointlocation.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/endpointlocation.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -24,8 +34,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.endpointlocation.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZXgithub.com/aristanetworks/cloudvision-go/api/arista/endpointlocation.v1;endpointlocation' _globals['_METARESPONSE']._serialized_start=260 _globals['_METARESPONSE']._serialized_end=408 diff --git a/arista/endpointlocation/v1/services/gen_pb2_grpc.py b/arista/endpointlocation/v1/services/gen_pb2_grpc.py index d67c47bc..0f7cc633 100644 --- a/arista/endpointlocation/v1/services/gen_pb2_grpc.py +++ b/arista/endpointlocation/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.endpointlocation.v1.services import gen_pb2 as arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/endpointlocation.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class EndpointLocationServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,42 +38,42 @@ def __init__(self, channel): '/arista.endpointlocation.v1.EndpointLocationService/GetOne', request_serializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationRequest.SerializeToString, response_deserializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.endpointlocation.v1.EndpointLocationService/GetSome', request_serializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationSomeRequest.SerializeToString, response_deserializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.endpointlocation.v1.EndpointLocationService/GetAll', request_serializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamRequest.SerializeToString, response_deserializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.endpointlocation.v1.EndpointLocationService/Subscribe', request_serializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamRequest.SerializeToString, response_deserializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.endpointlocation.v1.EndpointLocationService/GetMeta', request_serializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamRequest.SerializeToString, response_deserializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.endpointlocation.v1.EndpointLocationService/SubscribeMeta', request_serializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamRequest.SerializeToString, response_deserializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.endpointlocation.v1.EndpointLocationService/GetAllBatched', request_serializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.endpointlocation.v1.EndpointLocationService/SubscribeBatched', request_serializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationBatchedStreamResponse.FromString, - ) + _registered_method=True) class EndpointLocationServiceServicer(object): @@ -154,6 +174,7 @@ def add_EndpointLocationServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.endpointlocation.v1.EndpointLocationService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.endpointlocation.v1.EndpointLocationService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -171,11 +192,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.endpointlocation.v1.EndpointLocationService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.endpointlocation.v1.EndpointLocationService/GetOne', arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationRequest.SerializeToString, arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -188,11 +219,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.endpointlocation.v1.EndpointLocationService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.endpointlocation.v1.EndpointLocationService/GetSome', arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationSomeRequest.SerializeToString, arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -205,11 +246,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.endpointlocation.v1.EndpointLocationService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.endpointlocation.v1.EndpointLocationService/GetAll', arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamRequest.SerializeToString, arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -222,11 +273,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.endpointlocation.v1.EndpointLocationService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.endpointlocation.v1.EndpointLocationService/Subscribe', arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamRequest.SerializeToString, arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -239,11 +300,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.endpointlocation.v1.EndpointLocationService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.endpointlocation.v1.EndpointLocationService/GetMeta', arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamRequest.SerializeToString, arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -256,11 +327,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.endpointlocation.v1.EndpointLocationService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.endpointlocation.v1.EndpointLocationService/SubscribeMeta', arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationStreamRequest.SerializeToString, arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -273,11 +354,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.endpointlocation.v1.EndpointLocationService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.endpointlocation.v1.EndpointLocationService/GetAllBatched', arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationBatchedStreamRequest.SerializeToString, arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -290,8 +381,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.endpointlocation.v1.EndpointLocationService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.endpointlocation.v1.EndpointLocationService/SubscribeBatched', arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationBatchedStreamRequest.SerializeToString, arista_dot_endpointlocation_dot_v1_dot_services_dot_gen__pb2.EndpointLocationBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/event/v1/event_pb2.py b/arista/event/v1/event_pb2.py index 04117c4f..8873899c 100644 --- a/arista/event/v1/event_pb2.py +++ b/arista/event/v1/event_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/event.v1/event.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/event.v1/event.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -22,26 +32,26 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.event.v1.event_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZBgithub.com/aristanetworks/cloudvision-go/api/arista/event.v1;event' - _globals['_EVENTCOMPONENT_COMPONENTSENTRY']._options = None + _globals['_EVENTCOMPONENT_COMPONENTSENTRY']._loaded_options = None _globals['_EVENTCOMPONENT_COMPONENTSENTRY']._serialized_options = b'8\001' - _globals['_EVENTKEY']._options = None + _globals['_EVENTKEY']._loaded_options = None _globals['_EVENTKEY']._serialized_options = b'\200\216\031\001' - _globals['_EVENTDATA_DATAENTRY']._options = None + _globals['_EVENTDATA_DATAENTRY']._loaded_options = None _globals['_EVENTDATA_DATAENTRY']._serialized_options = b'8\001' - _globals['_EVENTNOTESCONFIG_NOTESENTRY']._options = None + _globals['_EVENTNOTESCONFIG_NOTESENTRY']._loaded_options = None _globals['_EVENTNOTESCONFIG_NOTESENTRY']._serialized_options = b'8\001' - _globals['_EVENTANNOTATIONCONFIG']._options = None + _globals['_EVENTANNOTATIONCONFIG']._loaded_options = None _globals['_EVENTANNOTATIONCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_EVENTNOTES_NOTESENTRY']._options = None + _globals['_EVENTNOTES_NOTESENTRY']._loaded_options = None _globals['_EVENTNOTES_NOTESENTRY']._serialized_options = b'8\001' - _globals['_EVENT']._options = None + _globals['_EVENT']._loaded_options = None _globals['_EVENT']._serialized_options = b'\372\215\031\002ro' - _globals['_USEREVENTCREATIONKEY']._options = None + _globals['_USEREVENTCREATIONKEY']._loaded_options = None _globals['_USEREVENTCREATIONKEY']._serialized_options = b'\200\216\031\001' - _globals['_USEREVENTCREATIONCONFIG']._options = None + _globals['_USEREVENTCREATIONCONFIG']._loaded_options = None _globals['_USEREVENTCREATIONCONFIG']._serialized_options = b'\372\215\031\002rw' _globals['_EVENTSEVERITY']._serialized_start=2673 _globals['_EVENTSEVERITY']._serialized_end=2854 diff --git a/arista/event/v1/event_pb2_grpc.py b/arista/event/v1/event_pb2_grpc.py index 2daafffe..f1066921 100644 --- a/arista/event/v1/event_pb2_grpc.py +++ b/arista/event/v1/event_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/event.v1/event_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/event/v1/services/gen_pb2.py b/arista/event/v1/services/gen_pb2.py index d66ee8aa..316f63f2 100644 --- a/arista/event/v1/services/gen_pb2.py +++ b/arista/event/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/event.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/event.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -25,8 +35,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.event.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZBgithub.com/aristanetworks/cloudvision-go/api/arista/event.v1;event' _globals['_METARESPONSE']._serialized_start=235 _globals['_METARESPONSE']._serialized_end=383 diff --git a/arista/event/v1/services/gen_pb2_grpc.py b/arista/event/v1/services/gen_pb2_grpc.py index 82d23b3b..6202edba 100644 --- a/arista/event/v1/services/gen_pb2_grpc.py +++ b/arista/event/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.event.v1.services import gen_pb2 as arista_dot_event_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/event.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class EventServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,32 +38,32 @@ def __init__(self, channel): '/arista.event.v1.EventService/GetOne', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.event.v1.EventService/GetSome', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventSomeRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.event.v1.EventService/GetAll', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.event.v1.EventService/Subscribe', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.event.v1.EventService/GetMeta', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.event.v1.EventService/SubscribeMeta', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) class EventServiceServicer(object): @@ -122,6 +142,7 @@ def add_EventServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.event.v1.EventService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.event.v1.EventService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -139,11 +160,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.event.v1.EventService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.event.v1.EventService/GetOne', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -156,11 +187,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.EventService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.EventService/GetSome', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventSomeRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -173,11 +214,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.EventService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.EventService/GetAll', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -190,11 +241,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.EventService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.EventService/Subscribe', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -207,11 +268,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.event.v1.EventService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.event.v1.EventService/GetMeta', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -224,11 +295,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.EventService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.EventService/SubscribeMeta', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class EventAnnotationConfigServiceStub(object): @@ -244,57 +325,57 @@ def __init__(self, channel): '/arista.event.v1.EventAnnotationConfigService/GetOne', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.event.v1.EventAnnotationConfigService/GetSome', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.event.v1.EventAnnotationConfigService/GetAll', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.event.v1.EventAnnotationConfigService/Subscribe', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.event.v1.EventAnnotationConfigService/GetMeta', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.event.v1.EventAnnotationConfigService/SubscribeMeta', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.event.v1.EventAnnotationConfigService/Set', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.event.v1.EventAnnotationConfigService/SetSome', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.event.v1.EventAnnotationConfigService/Delete', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.event.v1.EventAnnotationConfigService/DeleteSome', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.event.v1.EventAnnotationConfigService/DeleteAll', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteAllResponse.FromString, - ) + _registered_method=True) class EventAnnotationConfigServiceServicer(object): @@ -428,6 +509,7 @@ def add_EventAnnotationConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.event.v1.EventAnnotationConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.event.v1.EventAnnotationConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -445,11 +527,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.event.v1.EventAnnotationConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.event.v1.EventAnnotationConfigService/GetOne', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -462,11 +554,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.EventAnnotationConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.EventAnnotationConfigService/GetSome', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSomeRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -479,11 +581,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.EventAnnotationConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.EventAnnotationConfigService/GetAll', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -496,11 +608,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.EventAnnotationConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.EventAnnotationConfigService/Subscribe', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -513,11 +635,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.event.v1.EventAnnotationConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.event.v1.EventAnnotationConfigService/GetMeta', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -530,11 +662,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.EventAnnotationConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.EventAnnotationConfigService/SubscribeMeta', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -547,11 +689,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.event.v1.EventAnnotationConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.event.v1.EventAnnotationConfigService/Set', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -564,11 +716,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.EventAnnotationConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.EventAnnotationConfigService/SetSome', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetSomeRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -581,11 +743,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.event.v1.EventAnnotationConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.event.v1.EventAnnotationConfigService/Delete', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -598,11 +770,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.EventAnnotationConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.EventAnnotationConfigService/DeleteSome', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteSomeRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -615,11 +797,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.EventAnnotationConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.EventAnnotationConfigService/DeleteAll', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteAllRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class UserEventCreationConfigServiceStub(object): @@ -635,57 +827,57 @@ def __init__(self, channel): '/arista.event.v1.UserEventCreationConfigService/GetOne', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.event.v1.UserEventCreationConfigService/GetSome', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.event.v1.UserEventCreationConfigService/GetAll', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.event.v1.UserEventCreationConfigService/Subscribe', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.event.v1.UserEventCreationConfigService/GetMeta', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.event.v1.UserEventCreationConfigService/SubscribeMeta', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.event.v1.UserEventCreationConfigService/Set', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.event.v1.UserEventCreationConfigService/SetSome', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.event.v1.UserEventCreationConfigService/Delete', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.event.v1.UserEventCreationConfigService/DeleteSome', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.event.v1.UserEventCreationConfigService/DeleteAll', request_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteAllResponse.FromString, - ) + _registered_method=True) class UserEventCreationConfigServiceServicer(object): @@ -819,6 +1011,7 @@ def add_UserEventCreationConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.event.v1.UserEventCreationConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.event.v1.UserEventCreationConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -836,11 +1029,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.event.v1.UserEventCreationConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.event.v1.UserEventCreationConfigService/GetOne', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -853,11 +1056,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.UserEventCreationConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.UserEventCreationConfigService/GetSome', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSomeRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -870,11 +1083,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.UserEventCreationConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.UserEventCreationConfigService/GetAll', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -887,11 +1110,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.UserEventCreationConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.UserEventCreationConfigService/Subscribe', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -904,11 +1137,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.event.v1.UserEventCreationConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.event.v1.UserEventCreationConfigService/GetMeta', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -921,11 +1164,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.UserEventCreationConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.UserEventCreationConfigService/SubscribeMeta', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -938,11 +1191,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.event.v1.UserEventCreationConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.event.v1.UserEventCreationConfigService/Set', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -955,11 +1218,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.UserEventCreationConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.UserEventCreationConfigService/SetSome', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetSomeRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -972,11 +1245,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.event.v1.UserEventCreationConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.event.v1.UserEventCreationConfigService/Delete', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -989,11 +1272,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.UserEventCreationConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.UserEventCreationConfigService/DeleteSome', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteSomeRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1006,8 +1299,18 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.event.v1.UserEventCreationConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.event.v1.UserEventCreationConfigService/DeleteAll', arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteAllRequest.SerializeToString, arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/identityprovider/v1/identityprovider_pb2.py b/arista/identityprovider/v1/identityprovider_pb2.py index 0ff105de..5393635f 100644 --- a/arista/identityprovider/v1/identityprovider_pb2.py +++ b/arista/identityprovider/v1/identityprovider_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/identityprovider.v1/identityprovider.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/identityprovider.v1/identityprovider.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -22,16 +32,16 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.identityprovider.v1.identityprovider_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZXgithub.com/aristanetworks/cloudvision-go/api/arista/identityprovider.v1;identityprovider' - _globals['_OAUTHKEY']._options = None + _globals['_OAUTHKEY']._loaded_options = None _globals['_OAUTHKEY']._serialized_options = b'\200\216\031\001' - _globals['_OAUTHCONFIG']._options = None + _globals['_OAUTHCONFIG']._loaded_options = None _globals['_OAUTHCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_SAMLKEY']._options = None + _globals['_SAMLKEY']._loaded_options = None _globals['_SAMLKEY']._serialized_options = b'\200\216\031\001' - _globals['_SAMLCONFIG']._options = None + _globals['_SAMLCONFIG']._loaded_options = None _globals['_SAMLCONFIG']._serialized_options = b'\372\215\031\002rw' _globals['_PROTOCOLBINDING']._serialized_start=1543 _globals['_PROTOCOLBINDING']._serialized_end=1662 diff --git a/arista/identityprovider/v1/identityprovider_pb2_grpc.py b/arista/identityprovider/v1/identityprovider_pb2_grpc.py index 2daafffe..b15b1f03 100644 --- a/arista/identityprovider/v1/identityprovider_pb2_grpc.py +++ b/arista/identityprovider/v1/identityprovider_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/identityprovider.v1/identityprovider_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/identityprovider/v1/services/gen_pb2.py b/arista/identityprovider/v1/services/gen_pb2.py index 10d6c063..a1f54ef5 100644 --- a/arista/identityprovider/v1/services/gen_pb2.py +++ b/arista/identityprovider/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/identityprovider.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/identityprovider.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -25,8 +35,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.identityprovider.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZXgithub.com/aristanetworks/cloudvision-go/api/arista/identityprovider.v1;identityprovider' _globals['_METARESPONSE']._serialized_start=279 _globals['_METARESPONSE']._serialized_end=427 diff --git a/arista/identityprovider/v1/services/gen_pb2_grpc.py b/arista/identityprovider/v1/services/gen_pb2_grpc.py index 32317f65..cb1328d9 100644 --- a/arista/identityprovider/v1/services/gen_pb2_grpc.py +++ b/arista/identityprovider/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.identityprovider.v1.services import gen_pb2 as arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/identityprovider.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class OAuthConfigServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,67 +38,67 @@ def __init__(self, channel): '/arista.identityprovider.v1.OAuthConfigService/GetOne', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.identityprovider.v1.OAuthConfigService/GetSome', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.identityprovider.v1.OAuthConfigService/GetAll', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.identityprovider.v1.OAuthConfigService/Subscribe', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.identityprovider.v1.OAuthConfigService/GetMeta', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.identityprovider.v1.OAuthConfigService/SubscribeMeta', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.identityprovider.v1.OAuthConfigService/Set', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSetRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.identityprovider.v1.OAuthConfigService/SetSome', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.identityprovider.v1.OAuthConfigService/Delete', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.identityprovider.v1.OAuthConfigService/DeleteSome', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.identityprovider.v1.OAuthConfigService/DeleteAll', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.identityprovider.v1.OAuthConfigService/GetAllBatched', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.identityprovider.v1.OAuthConfigService/SubscribeBatched', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class OAuthConfigServiceServicer(object): @@ -234,6 +254,7 @@ def add_OAuthConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.identityprovider.v1.OAuthConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.identityprovider.v1.OAuthConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -251,11 +272,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.identityprovider.v1.OAuthConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/GetOne', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -268,11 +299,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.OAuthConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/GetSome', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSomeRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -285,11 +326,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.OAuthConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/GetAll', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -302,11 +353,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.OAuthConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/Subscribe', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -319,11 +380,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.identityprovider.v1.OAuthConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/GetMeta', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -336,11 +407,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.OAuthConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/SubscribeMeta', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -353,11 +434,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.identityprovider.v1.OAuthConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/Set', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSetRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -370,11 +461,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.OAuthConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/SetSome', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSetSomeRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -387,11 +488,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.identityprovider.v1.OAuthConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/Delete', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -404,11 +515,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.OAuthConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/DeleteSome', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteSomeRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -421,11 +542,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.OAuthConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/DeleteAll', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteAllRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -438,11 +569,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.OAuthConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/GetAllBatched', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigBatchedStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -455,11 +596,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.OAuthConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.OAuthConfigService/SubscribeBatched', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigBatchedStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.OAuthConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class SAMLConfigServiceStub(object): @@ -475,67 +626,67 @@ def __init__(self, channel): '/arista.identityprovider.v1.SAMLConfigService/GetOne', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.identityprovider.v1.SAMLConfigService/GetSome', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.identityprovider.v1.SAMLConfigService/GetAll', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.identityprovider.v1.SAMLConfigService/Subscribe', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.identityprovider.v1.SAMLConfigService/GetMeta', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.identityprovider.v1.SAMLConfigService/SubscribeMeta', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.identityprovider.v1.SAMLConfigService/Set', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSetRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.identityprovider.v1.SAMLConfigService/SetSome', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.identityprovider.v1.SAMLConfigService/Delete', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.identityprovider.v1.SAMLConfigService/DeleteSome', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.identityprovider.v1.SAMLConfigService/DeleteAll', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.identityprovider.v1.SAMLConfigService/GetAllBatched', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.identityprovider.v1.SAMLConfigService/SubscribeBatched', request_serializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class SAMLConfigServiceServicer(object): @@ -691,6 +842,7 @@ def add_SAMLConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.identityprovider.v1.SAMLConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.identityprovider.v1.SAMLConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -708,11 +860,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.identityprovider.v1.SAMLConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/GetOne', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -725,11 +887,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.SAMLConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/GetSome', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSomeRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -742,11 +914,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.SAMLConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/GetAll', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -759,11 +941,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.SAMLConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/Subscribe', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -776,11 +968,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.identityprovider.v1.SAMLConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/GetMeta', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -793,11 +995,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.SAMLConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/SubscribeMeta', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -810,11 +1022,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.identityprovider.v1.SAMLConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/Set', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSetRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -827,11 +1049,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.SAMLConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/SetSome', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSetSomeRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -844,11 +1076,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.identityprovider.v1.SAMLConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/Delete', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -861,11 +1103,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.SAMLConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/DeleteSome', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteSomeRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -878,11 +1130,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.SAMLConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/DeleteAll', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteAllRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -895,11 +1157,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.SAMLConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/GetAllBatched', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigBatchedStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -912,8 +1184,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.identityprovider.v1.SAMLConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.identityprovider.v1.SAMLConfigService/SubscribeBatched', arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigBatchedStreamRequest.SerializeToString, arista_dot_identityprovider_dot_v1_dot_services_dot_gen__pb2.SAMLConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/imagestatus/v1/imagestatus_pb2.py b/arista/imagestatus/v1/imagestatus_pb2.py index 2fc97a08..03c8cca8 100644 --- a/arista/imagestatus/v1/imagestatus_pb2.py +++ b/arista/imagestatus/v1/imagestatus_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/imagestatus.v1/imagestatus.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/imagestatus.v1/imagestatus.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -22,34 +32,34 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.imagestatus.v1.imagestatus_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\031com.arista.imagestatus.v1B\013ImagestatusP\001ZNgithub.com/aristanetworks/cloudvision-go/api/arista/imagestatus.v1;imagestatus' - _globals['_ERRORCODE'].values_by_name["ERROR_CODE_SUPPORT_NOT_INTRODUCED"]._options = None + _globals['_ERRORCODE'].values_by_name["ERROR_CODE_SUPPORT_NOT_INTRODUCED"]._loaded_options = None _globals['_ERRORCODE'].values_by_name["ERROR_CODE_SUPPORT_NOT_INTRODUCED"]._serialized_options = b'\010\001' - _globals['_ERRORCODE'].values_by_name["ERROR_CODE_SUPPORT_REMOVED"]._options = None + _globals['_ERRORCODE'].values_by_name["ERROR_CODE_SUPPORT_REMOVED"]._loaded_options = None _globals['_ERRORCODE'].values_by_name["ERROR_CODE_SUPPORT_REMOVED"]._serialized_options = b'\010\001' - _globals['_ERRORCODE'].values_by_name["ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_ACTIVE_SUPERVISOR_FAILED"]._options = None + _globals['_ERRORCODE'].values_by_name["ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_ACTIVE_SUPERVISOR_FAILED"]._loaded_options = None _globals['_ERRORCODE'].values_by_name["ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_ACTIVE_SUPERVISOR_FAILED"]._serialized_options = b'\010\001' - _globals['_ERRORCODE'].values_by_name["ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_PEER_SUPERVISOR_FAILED"]._options = None + _globals['_ERRORCODE'].values_by_name["ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_PEER_SUPERVISOR_FAILED"]._loaded_options = None _globals['_ERRORCODE'].values_by_name["ERROR_CODE_GET_RUNNING_IMAGE_INFO_FROM_PEER_SUPERVISOR_FAILED"]._serialized_options = b'\010\001' - _globals['_WARNINGCODE'].values_by_name["WARNING_CODE_TA_CV_INCOMPATIBLE"]._options = None + _globals['_WARNINGCODE'].values_by_name["WARNING_CODE_TA_CV_INCOMPATIBLE"]._loaded_options = None _globals['_WARNINGCODE'].values_by_name["WARNING_CODE_TA_CV_INCOMPATIBLE"]._serialized_options = b'\010\001' - _globals['_WARNINGCODE'].values_by_name["WARNING_CODE_EOS_CV_INCOMPATIBLE"]._options = None + _globals['_WARNINGCODE'].values_by_name["WARNING_CODE_EOS_CV_INCOMPATIBLE"]._loaded_options = None _globals['_WARNINGCODE'].values_by_name["WARNING_CODE_EOS_CV_INCOMPATIBLE"]._serialized_options = b'\010\001' - _globals['_WARNINGCODE'].values_by_name["WARNING_CODE_ARCH_INCOMPATIBLE"]._options = None + _globals['_WARNINGCODE'].values_by_name["WARNING_CODE_ARCH_INCOMPATIBLE"]._loaded_options = None _globals['_WARNINGCODE'].values_by_name["WARNING_CODE_ARCH_INCOMPATIBLE"]._serialized_options = b'\010\001' - _globals['_COMPLIANCESTATUSBYSUP_VALUESENTRY']._options = None + _globals['_COMPLIANCESTATUSBYSUP_VALUESENTRY']._loaded_options = None _globals['_COMPLIANCESTATUSBYSUP_VALUESENTRY']._serialized_options = b'8\001' - _globals['_SOFTWAREIMAGEDIFFSBYSUP_VALUESENTRY']._options = None + _globals['_SOFTWAREIMAGEDIFFSBYSUP_VALUESENTRY']._loaded_options = None _globals['_SOFTWAREIMAGEDIFFSBYSUP_VALUESENTRY']._serialized_options = b'8\001' - _globals['_TERMINATTRDIFFSBYSUP_VALUESENTRY']._options = None + _globals['_TERMINATTRDIFFSBYSUP_VALUESENTRY']._loaded_options = None _globals['_TERMINATTRDIFFSBYSUP_VALUESENTRY']._serialized_options = b'8\001' - _globals['_EXTENSIONDIFFSBYSUP_VALUESENTRY']._options = None + _globals['_EXTENSIONDIFFSBYSUP_VALUESENTRY']._loaded_options = None _globals['_EXTENSIONDIFFSBYSUP_VALUESENTRY']._serialized_options = b'8\001' - _globals['_SUMMARYKEY']._options = None + _globals['_SUMMARYKEY']._loaded_options = None _globals['_SUMMARYKEY']._serialized_options = b'\200\216\031\001' - _globals['_SUMMARY']._options = None + _globals['_SUMMARY']._loaded_options = None _globals['_SUMMARY']._serialized_options = b'\372\215\031\002ro' _globals['_EXTENSIONINSTALLSTATUS']._serialized_start=4563 _globals['_EXTENSIONINSTALLSTATUS']._serialized_end=4759 diff --git a/arista/imagestatus/v1/imagestatus_pb2_grpc.py b/arista/imagestatus/v1/imagestatus_pb2_grpc.py index 2daafffe..b1fa4317 100644 --- a/arista/imagestatus/v1/imagestatus_pb2_grpc.py +++ b/arista/imagestatus/v1/imagestatus_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/imagestatus.v1/imagestatus_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/imagestatus/v1/services/gen_pb2.py b/arista/imagestatus/v1/services/gen_pb2.py index b87a4904..848c2dc4 100644 --- a/arista/imagestatus/v1/services/gen_pb2.py +++ b/arista/imagestatus/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/imagestatus.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/imagestatus.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -24,8 +34,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.imagestatus.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\031com.arista.imagestatus.v1B\023ImagestatusServicesP\001ZNgithub.com/aristanetworks/cloudvision-go/api/arista/imagestatus.v1;imagestatus' _globals['_METARESPONSE']._serialized_start=240 _globals['_METARESPONSE']._serialized_end=388 diff --git a/arista/imagestatus/v1/services/gen_pb2_grpc.py b/arista/imagestatus/v1/services/gen_pb2_grpc.py index 5b642ffe..eac221e9 100644 --- a/arista/imagestatus/v1/services/gen_pb2_grpc.py +++ b/arista/imagestatus/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.imagestatus.v1.services import gen_pb2 as arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/imagestatus.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class SummaryServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,42 +38,42 @@ def __init__(self, channel): '/arista.imagestatus.v1.SummaryService/GetOne', request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryRequest.SerializeToString, response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.imagestatus.v1.SummaryService/GetSome', request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeRequest.SerializeToString, response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.imagestatus.v1.SummaryService/GetAll', request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.imagestatus.v1.SummaryService/Subscribe', request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.imagestatus.v1.SummaryService/GetMeta', request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.imagestatus.v1.SummaryService/SubscribeMeta', request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.imagestatus.v1.SummaryService/GetAllBatched', request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.imagestatus.v1.SummaryService/SubscribeBatched', request_serializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, - ) + _registered_method=True) class SummaryServiceServicer(object): @@ -154,6 +174,7 @@ def add_SummaryServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.imagestatus.v1.SummaryService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.imagestatus.v1.SummaryService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -171,11 +192,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.imagestatus.v1.SummaryService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.imagestatus.v1.SummaryService/GetOne', arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryRequest.SerializeToString, arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -188,11 +219,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.imagestatus.v1.SummaryService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.imagestatus.v1.SummaryService/GetSome', arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeRequest.SerializeToString, arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummarySomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -205,11 +246,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.imagestatus.v1.SummaryService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.imagestatus.v1.SummaryService/GetAll', arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -222,11 +273,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.imagestatus.v1.SummaryService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.imagestatus.v1.SummaryService/Subscribe', arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -239,11 +300,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.imagestatus.v1.SummaryService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.imagestatus.v1.SummaryService/GetMeta', arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -256,11 +327,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.imagestatus.v1.SummaryService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.imagestatus.v1.SummaryService/SubscribeMeta', arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryStreamRequest.SerializeToString, arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -273,11 +354,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.imagestatus.v1.SummaryService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.imagestatus.v1.SummaryService/GetAllBatched', arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -290,8 +381,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.imagestatus.v1.SummaryService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.imagestatus.v1.SummaryService/SubscribeBatched', arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamRequest.SerializeToString, arista_dot_imagestatus_dot_v1_dot_services_dot_gen__pb2.SummaryBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/inventory/v1/inventory_pb2.py b/arista/inventory/v1/inventory_pb2.py index 492d0fe4..717aa225 100644 --- a/arista/inventory/v1/inventory_pb2.py +++ b/arista/inventory/v1/inventory_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/inventory.v1/inventory.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/inventory.v1/inventory.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -23,28 +33,28 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.inventory.v1.inventory_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZJgithub.com/aristanetworks/cloudvision-go/api/arista/inventory.v1;inventory' - _globals['_EXTENDEDATTRIBUTES_FEATUREENABLEDENTRY']._options = None + _globals['_EXTENDEDATTRIBUTES_FEATUREENABLEDENTRY']._loaded_options = None _globals['_EXTENDEDATTRIBUTES_FEATUREENABLEDENTRY']._serialized_options = b'8\001' - _globals['_DEVICEKEY']._options = None + _globals['_DEVICEKEY']._loaded_options = None _globals['_DEVICEKEY']._serialized_options = b'\200\216\031\001' - _globals['_DEVICECONFIGURATION_OPTIONSENTRY']._options = None + _globals['_DEVICECONFIGURATION_OPTIONSENTRY']._loaded_options = None _globals['_DEVICECONFIGURATION_OPTIONSENTRY']._serialized_options = b'8\001' - _globals['_UUIDKEY']._options = None + _globals['_UUIDKEY']._loaded_options = None _globals['_UUIDKEY']._serialized_options = b'\200\216\031\001' - _globals['_DEVICEONBOARDINGCONFIG']._options = None + _globals['_DEVICEONBOARDINGCONFIG']._loaded_options = None _globals['_DEVICEONBOARDINGCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_DEVICEONBOARDING']._options = None + _globals['_DEVICEONBOARDING']._loaded_options = None _globals['_DEVICEONBOARDING']._serialized_options = b'\372\215\031\002ro' - _globals['_DEVICEDECOMMISSIONINGCONFIG']._options = None + _globals['_DEVICEDECOMMISSIONINGCONFIG']._loaded_options = None _globals['_DEVICEDECOMMISSIONINGCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_DEVICEDECOMMISSIONING']._options = None + _globals['_DEVICEDECOMMISSIONING']._loaded_options = None _globals['_DEVICEDECOMMISSIONING']._serialized_options = b'\372\215\031\002ro' - _globals['_DEVICE']._options = None + _globals['_DEVICE']._loaded_options = None _globals['_DEVICE']._serialized_options = b'\372\215\031\002ro' - _globals['_PROVISIONEDDEVICE']._options = None + _globals['_PROVISIONEDDEVICE']._loaded_options = None _globals['_PROVISIONEDDEVICE']._serialized_options = b'\372\215\031\002ro' _globals['_STREAMINGSTATUS']._serialized_start=2520 _globals['_STREAMINGSTATUS']._serialized_end=2631 diff --git a/arista/inventory/v1/inventory_pb2_grpc.py b/arista/inventory/v1/inventory_pb2_grpc.py index 2daafffe..0103b338 100644 --- a/arista/inventory/v1/inventory_pb2_grpc.py +++ b/arista/inventory/v1/inventory_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/inventory.v1/inventory_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/inventory/v1/services/gen_pb2.py b/arista/inventory/v1/services/gen_pb2.py index 4eb7d8b2..338651ef 100644 --- a/arista/inventory/v1/services/gen_pb2.py +++ b/arista/inventory/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/inventory.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/inventory.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -25,8 +35,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.inventory.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZJgithub.com/aristanetworks/cloudvision-go/api/arista/inventory.v1;inventory' _globals['_METARESPONSE']._serialized_start=251 _globals['_METARESPONSE']._serialized_end=399 diff --git a/arista/inventory/v1/services/gen_pb2_grpc.py b/arista/inventory/v1/services/gen_pb2_grpc.py index 2e1318b4..fd6017e7 100644 --- a/arista/inventory/v1/services/gen_pb2_grpc.py +++ b/arista/inventory/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.inventory.v1.services import gen_pb2 as arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/inventory.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class DeviceServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,42 +38,42 @@ def __init__(self, channel): '/arista.inventory.v1.DeviceService/GetOne', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.inventory.v1.DeviceService/GetSome', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceSomeRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.inventory.v1.DeviceService/GetAll', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.inventory.v1.DeviceService/Subscribe', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.inventory.v1.DeviceService/GetMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.inventory.v1.DeviceService/SubscribeMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.inventory.v1.DeviceService/GetAllBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.inventory.v1.DeviceService/SubscribeBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceBatchedStreamResponse.FromString, - ) + _registered_method=True) class DeviceServiceServicer(object): @@ -154,6 +174,7 @@ def add_DeviceServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.inventory.v1.DeviceService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.inventory.v1.DeviceService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -171,11 +192,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceService/GetOne', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -188,11 +219,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceService/GetSome', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceSomeRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -205,11 +246,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceService/GetAll', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -222,11 +273,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceService/Subscribe', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -239,11 +300,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceService/GetMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -256,11 +327,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceService/SubscribeMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -273,11 +354,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceService/GetAllBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -290,11 +381,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceService/SubscribeBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class DeviceDecommissioningServiceStub(object): @@ -310,42 +411,42 @@ def __init__(self, channel): '/arista.inventory.v1.DeviceDecommissioningService/GetOne', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningService/GetSome', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningSomeRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningService/GetAll', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningService/Subscribe', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.inventory.v1.DeviceDecommissioningService/GetMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningService/SubscribeMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningService/GetAllBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningService/SubscribeBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningBatchedStreamResponse.FromString, - ) + _registered_method=True) class DeviceDecommissioningServiceServicer(object): @@ -446,6 +547,7 @@ def add_DeviceDecommissioningServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.inventory.v1.DeviceDecommissioningService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.inventory.v1.DeviceDecommissioningService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -463,11 +565,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceDecommissioningService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningService/GetOne', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -480,11 +592,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningService/GetSome', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningSomeRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -497,11 +619,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningService/GetAll', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -514,11 +646,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningService/Subscribe', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -531,11 +673,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceDecommissioningService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningService/GetMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -548,11 +700,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningService/SubscribeMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -565,11 +727,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningService/GetAllBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -582,11 +754,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningService/SubscribeBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class DeviceDecommissioningConfigServiceStub(object): @@ -602,67 +784,67 @@ def __init__(self, channel): '/arista.inventory.v1.DeviceDecommissioningConfigService/GetOne', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningConfigService/GetSome', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningConfigService/GetAll', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningConfigService/Subscribe', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.inventory.v1.DeviceDecommissioningConfigService/GetMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningConfigService/SubscribeMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.inventory.v1.DeviceDecommissioningConfigService/Set', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSetRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningConfigService/SetSome', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.inventory.v1.DeviceDecommissioningConfigService/Delete', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningConfigService/DeleteSome', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningConfigService/DeleteAll', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningConfigService/GetAllBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.inventory.v1.DeviceDecommissioningConfigService/SubscribeBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class DeviceDecommissioningConfigServiceServicer(object): @@ -818,6 +1000,7 @@ def add_DeviceDecommissioningConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.inventory.v1.DeviceDecommissioningConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.inventory.v1.DeviceDecommissioningConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -835,11 +1018,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/GetOne', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -852,11 +1045,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/GetSome', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSomeRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -869,11 +1072,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/GetAll', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -886,11 +1099,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/Subscribe', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -903,11 +1126,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/GetMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -920,11 +1153,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/SubscribeMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -937,11 +1180,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/Set', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSetRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -954,11 +1207,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/SetSome', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSetSomeRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -971,11 +1234,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/Delete', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -988,11 +1261,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/DeleteSome', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteSomeRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1005,11 +1288,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/DeleteAll', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteAllRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1022,11 +1315,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/GetAllBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1039,11 +1342,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceDecommissioningConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceDecommissioningConfigService/SubscribeBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceDecommissioningConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class DeviceOnboardingServiceStub(object): @@ -1059,42 +1372,42 @@ def __init__(self, channel): '/arista.inventory.v1.DeviceOnboardingService/GetOne', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingService/GetSome', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingSomeRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingService/GetAll', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingService/Subscribe', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.inventory.v1.DeviceOnboardingService/GetMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingService/SubscribeMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingService/GetAllBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingService/SubscribeBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingBatchedStreamResponse.FromString, - ) + _registered_method=True) class DeviceOnboardingServiceServicer(object): @@ -1195,6 +1508,7 @@ def add_DeviceOnboardingServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.inventory.v1.DeviceOnboardingService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.inventory.v1.DeviceOnboardingService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1212,11 +1526,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceOnboardingService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceOnboardingService/GetOne', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1229,11 +1553,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingService/GetSome', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingSomeRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1246,11 +1580,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingService/GetAll', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1263,11 +1607,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingService/Subscribe', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1280,11 +1634,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceOnboardingService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceOnboardingService/GetMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1297,11 +1661,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingService/SubscribeMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1314,11 +1688,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingService/GetAllBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1331,11 +1715,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingService/SubscribeBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class DeviceOnboardingConfigServiceStub(object): @@ -1351,67 +1745,67 @@ def __init__(self, channel): '/arista.inventory.v1.DeviceOnboardingConfigService/GetOne', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingConfigService/GetSome', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingConfigService/GetAll', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingConfigService/Subscribe', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.inventory.v1.DeviceOnboardingConfigService/GetMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingConfigService/SubscribeMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.inventory.v1.DeviceOnboardingConfigService/Set', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSetRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingConfigService/SetSome', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.inventory.v1.DeviceOnboardingConfigService/Delete', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingConfigService/DeleteSome', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingConfigService/DeleteAll', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingConfigService/GetAllBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.inventory.v1.DeviceOnboardingConfigService/SubscribeBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class DeviceOnboardingConfigServiceServicer(object): @@ -1567,6 +1961,7 @@ def add_DeviceOnboardingConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.inventory.v1.DeviceOnboardingConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.inventory.v1.DeviceOnboardingConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1584,11 +1979,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/GetOne', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1601,11 +2006,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/GetSome', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSomeRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1618,11 +2033,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/GetAll', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1635,11 +2060,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/Subscribe', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1652,11 +2087,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/GetMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1669,11 +2114,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/SubscribeMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -1686,11 +2141,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/Set', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSetRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -1703,11 +2168,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/SetSome', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSetSomeRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -1720,11 +2195,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/Delete', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -1737,11 +2222,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/DeleteSome', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteSomeRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1754,11 +2249,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/DeleteAll', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteAllRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1771,11 +2276,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/GetAllBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1788,11 +2303,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.DeviceOnboardingConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.DeviceOnboardingConfigService/SubscribeBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.DeviceOnboardingConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class ProvisionedDeviceServiceStub(object): @@ -1808,42 +2333,42 @@ def __init__(self, channel): '/arista.inventory.v1.ProvisionedDeviceService/GetOne', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.inventory.v1.ProvisionedDeviceService/GetSome', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceSomeRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.inventory.v1.ProvisionedDeviceService/GetAll', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.inventory.v1.ProvisionedDeviceService/Subscribe', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.inventory.v1.ProvisionedDeviceService/GetMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.inventory.v1.ProvisionedDeviceService/SubscribeMeta', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.inventory.v1.ProvisionedDeviceService/GetAllBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.inventory.v1.ProvisionedDeviceService/SubscribeBatched', request_serializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceBatchedStreamResponse.FromString, - ) + _registered_method=True) class ProvisionedDeviceServiceServicer(object): @@ -1944,6 +2469,7 @@ def add_ProvisionedDeviceServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.inventory.v1.ProvisionedDeviceService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.inventory.v1.ProvisionedDeviceService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1961,11 +2487,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.ProvisionedDeviceService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.ProvisionedDeviceService/GetOne', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1978,11 +2514,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.ProvisionedDeviceService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.ProvisionedDeviceService/GetSome', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceSomeRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1995,11 +2541,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.ProvisionedDeviceService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.ProvisionedDeviceService/GetAll', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -2012,11 +2568,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.ProvisionedDeviceService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.ProvisionedDeviceService/Subscribe', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -2029,11 +2595,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.inventory.v1.ProvisionedDeviceService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.inventory.v1.ProvisionedDeviceService/GetMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -2046,11 +2622,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.ProvisionedDeviceService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.ProvisionedDeviceService/SubscribeMeta', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -2063,11 +2649,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.ProvisionedDeviceService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.ProvisionedDeviceService/GetAllBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -2080,8 +2676,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.inventory.v1.ProvisionedDeviceService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.inventory.v1.ProvisionedDeviceService/SubscribeBatched', arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceBatchedStreamRequest.SerializeToString, arista_dot_inventory_dot_v1_dot_services_dot_gen__pb2.ProvisionedDeviceBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/lifecycle/v1/lifecycle_pb2.py b/arista/lifecycle/v1/lifecycle_pb2.py index eeb54b97..d2f50643 100644 --- a/arista/lifecycle/v1/lifecycle_pb2.py +++ b/arista/lifecycle/v1/lifecycle_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/lifecycle.v1/lifecycle.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/lifecycle.v1/lifecycle.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -23,12 +33,12 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.lifecycle.v1.lifecycle_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\027com.arista.lifecycle.v1B\tLifecycleP\001ZJgithub.com/aristanetworks/cloudvision-go/api/arista/lifecycle.v1;lifecycle' - _globals['_DEVICELIFECYCLESUMMARYKEY']._options = None + _globals['_DEVICELIFECYCLESUMMARYKEY']._loaded_options = None _globals['_DEVICELIFECYCLESUMMARYKEY']._serialized_options = b'\200\216\031\001' - _globals['_DEVICELIFECYCLESUMMARY']._options = None + _globals['_DEVICELIFECYCLESUMMARY']._loaded_options = None _globals['_DEVICELIFECYCLESUMMARY']._serialized_options = b'\372\215\031\002ro' _globals['_DEVICELIFECYCLESUMMARYKEY']._serialized_start=167 _globals['_DEVICELIFECYCLESUMMARYKEY']._serialized_end=249 diff --git a/arista/lifecycle/v1/lifecycle_pb2_grpc.py b/arista/lifecycle/v1/lifecycle_pb2_grpc.py index 2daafffe..c223b2bb 100644 --- a/arista/lifecycle/v1/lifecycle_pb2_grpc.py +++ b/arista/lifecycle/v1/lifecycle_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/lifecycle.v1/lifecycle_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/lifecycle/v1/services/gen_pb2.py b/arista/lifecycle/v1/services/gen_pb2.py index 2583c2b1..ee4a8f8c 100644 --- a/arista/lifecycle/v1/services/gen_pb2.py +++ b/arista/lifecycle/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/lifecycle.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/lifecycle.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -24,8 +34,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.lifecycle.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'\n\027com.arista.lifecycle.v1B\021LifecycleServicesP\001ZJgithub.com/aristanetworks/cloudvision-go/api/arista/lifecycle.v1;lifecycle' _globals['_METARESPONSE']._serialized_start=232 _globals['_METARESPONSE']._serialized_end=380 diff --git a/arista/lifecycle/v1/services/gen_pb2_grpc.py b/arista/lifecycle/v1/services/gen_pb2_grpc.py index da17a653..c5a3efb2 100644 --- a/arista/lifecycle/v1/services/gen_pb2_grpc.py +++ b/arista/lifecycle/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.lifecycle.v1.services import gen_pb2 as arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/lifecycle.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class DeviceLifecycleSummaryServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,27 +38,27 @@ def __init__(self, channel): '/arista.lifecycle.v1.DeviceLifecycleSummaryService/GetOne', request_serializer=arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryRequest.SerializeToString, response_deserializer=arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.lifecycle.v1.DeviceLifecycleSummaryService/GetAll', request_serializer=arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.lifecycle.v1.DeviceLifecycleSummaryService/Subscribe', request_serializer=arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.lifecycle.v1.DeviceLifecycleSummaryService/GetMeta', request_serializer=arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.lifecycle.v1.DeviceLifecycleSummaryService/SubscribeMeta', request_serializer=arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) class DeviceLifecycleSummaryServiceServicer(object): @@ -106,6 +126,7 @@ def add_DeviceLifecycleSummaryServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.lifecycle.v1.DeviceLifecycleSummaryService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.lifecycle.v1.DeviceLifecycleSummaryService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -123,11 +144,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.lifecycle.v1.DeviceLifecycleSummaryService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.lifecycle.v1.DeviceLifecycleSummaryService/GetOne', arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryRequest.SerializeToString, arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -140,11 +171,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.lifecycle.v1.DeviceLifecycleSummaryService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.lifecycle.v1.DeviceLifecycleSummaryService/GetAll', arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamRequest.SerializeToString, arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -157,11 +198,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.lifecycle.v1.DeviceLifecycleSummaryService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.lifecycle.v1.DeviceLifecycleSummaryService/Subscribe', arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamRequest.SerializeToString, arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -174,11 +225,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.lifecycle.v1.DeviceLifecycleSummaryService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.lifecycle.v1.DeviceLifecycleSummaryService/GetMeta', arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamRequest.SerializeToString, arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -191,8 +252,18 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.lifecycle.v1.DeviceLifecycleSummaryService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.lifecycle.v1.DeviceLifecycleSummaryService/SubscribeMeta', arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.DeviceLifecycleSummaryStreamRequest.SerializeToString, arista_dot_lifecycle_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/redirector/v1/redirector_pb2.py b/arista/redirector/v1/redirector_pb2.py index ad443459..681dbb70 100644 --- a/arista/redirector/v1/redirector_pb2.py +++ b/arista/redirector/v1/redirector_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/redirector.v1/redirector.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/redirector.v1/redirector.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -22,12 +32,12 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.redirector.v1.redirector_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZLgithub.com/aristanetworks/cloudvision-go/api/arista/redirector.v1;redirector' - _globals['_ASSIGNMENTKEY']._options = None + _globals['_ASSIGNMENTKEY']._loaded_options = None _globals['_ASSIGNMENTKEY']._serialized_options = b'\200\216\031\001' - _globals['_ASSIGNMENT']._options = None + _globals['_ASSIGNMENT']._loaded_options = None _globals['_ASSIGNMENT']._serialized_options = b'\372\215\031\002ro' _globals['_ASSIGNMENTKEY']._serialized_start=137 _globals['_ASSIGNMENTKEY']._serialized_end=207 diff --git a/arista/redirector/v1/redirector_pb2_grpc.py b/arista/redirector/v1/redirector_pb2_grpc.py index 2daafffe..09b93a73 100644 --- a/arista/redirector/v1/redirector_pb2_grpc.py +++ b/arista/redirector/v1/redirector_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/redirector.v1/redirector_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/redirector/v1/services/gen_pb2.py b/arista/redirector/v1/services/gen_pb2.py index 79c76100..1b85883f 100644 --- a/arista/redirector/v1/services/gen_pb2.py +++ b/arista/redirector/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/redirector.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/redirector.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -24,8 +34,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.redirector.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZLgithub.com/aristanetworks/cloudvision-go/api/arista/redirector.v1;redirector' _globals['_METARESPONSE']._serialized_start=236 _globals['_METARESPONSE']._serialized_end=384 diff --git a/arista/redirector/v1/services/gen_pb2_grpc.py b/arista/redirector/v1/services/gen_pb2_grpc.py index d5e6e13d..133a1bcc 100644 --- a/arista/redirector/v1/services/gen_pb2_grpc.py +++ b/arista/redirector/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.redirector.v1.services import gen_pb2 as arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/redirector.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class AssignmentServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,42 +38,42 @@ def __init__(self, channel): '/arista.redirector.v1.AssignmentService/GetOne', request_serializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentRequest.SerializeToString, response_deserializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.redirector.v1.AssignmentService/GetSome', request_serializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentSomeRequest.SerializeToString, response_deserializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.redirector.v1.AssignmentService/GetAll', request_serializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.redirector.v1.AssignmentService/Subscribe', request_serializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.redirector.v1.AssignmentService/GetMeta', request_serializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.redirector.v1.AssignmentService/SubscribeMeta', request_serializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.redirector.v1.AssignmentService/GetAllBatched', request_serializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.redirector.v1.AssignmentService/SubscribeBatched', request_serializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentBatchedStreamResponse.FromString, - ) + _registered_method=True) class AssignmentServiceServicer(object): @@ -154,6 +174,7 @@ def add_AssignmentServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.redirector.v1.AssignmentService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.redirector.v1.AssignmentService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -171,11 +192,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.redirector.v1.AssignmentService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.redirector.v1.AssignmentService/GetOne', arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentRequest.SerializeToString, arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -188,11 +219,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.redirector.v1.AssignmentService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.redirector.v1.AssignmentService/GetSome', arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentSomeRequest.SerializeToString, arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -205,11 +246,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.redirector.v1.AssignmentService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.redirector.v1.AssignmentService/GetAll', arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamRequest.SerializeToString, arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -222,11 +273,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.redirector.v1.AssignmentService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.redirector.v1.AssignmentService/Subscribe', arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamRequest.SerializeToString, arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -239,11 +300,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.redirector.v1.AssignmentService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.redirector.v1.AssignmentService/GetMeta', arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamRequest.SerializeToString, arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -256,11 +327,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.redirector.v1.AssignmentService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.redirector.v1.AssignmentService/SubscribeMeta', arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentStreamRequest.SerializeToString, arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -273,11 +354,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.redirector.v1.AssignmentService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.redirector.v1.AssignmentService/GetAllBatched', arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentBatchedStreamRequest.SerializeToString, arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -290,8 +381,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.redirector.v1.AssignmentService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.redirector.v1.AssignmentService/SubscribeBatched', arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentBatchedStreamRequest.SerializeToString, arista_dot_redirector_dot_v1_dot_services_dot_gen__pb2.AssignmentBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/serviceaccount/v1/serviceaccount_pb2.py b/arista/serviceaccount/v1/serviceaccount_pb2.py index 6327a9e3..4f70630a 100644 --- a/arista/serviceaccount/v1/serviceaccount_pb2.py +++ b/arista/serviceaccount/v1/serviceaccount_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/serviceaccount.v1/serviceaccount.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/serviceaccount.v1/serviceaccount.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -24,20 +34,20 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.serviceaccount.v1.serviceaccount_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZTgithub.com/aristanetworks/cloudvision-go/api/arista/serviceaccount.v1;serviceaccount' - _globals['_ACCOUNTKEY']._options = None + _globals['_ACCOUNTKEY']._loaded_options = None _globals['_ACCOUNTKEY']._serialized_options = b'\200\216\031\001' - _globals['_ACCOUNTCONFIG']._options = None + _globals['_ACCOUNTCONFIG']._loaded_options = None _globals['_ACCOUNTCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_ACCOUNT']._options = None + _globals['_ACCOUNT']._loaded_options = None _globals['_ACCOUNT']._serialized_options = b'\372\215\031\002ro' - _globals['_TOKENKEY']._options = None + _globals['_TOKENKEY']._loaded_options = None _globals['_TOKENKEY']._serialized_options = b'\200\216\031\001' - _globals['_TOKENCONFIG']._options = None + _globals['_TOKENCONFIG']._loaded_options = None _globals['_TOKENCONFIG']._serialized_options = b'\372\215\031\002rw\230\216\031\000' - _globals['_TOKEN']._options = None + _globals['_TOKEN']._loaded_options = None _globals['_TOKEN']._serialized_options = b'\372\215\031\002ro' _globals['_ACCOUNTSTATUS']._serialized_start=1446 _globals['_ACCOUNTSTATUS']._serialized_end=1550 diff --git a/arista/serviceaccount/v1/serviceaccount_pb2_grpc.py b/arista/serviceaccount/v1/serviceaccount_pb2_grpc.py index 2daafffe..19136cbf 100644 --- a/arista/serviceaccount/v1/serviceaccount_pb2_grpc.py +++ b/arista/serviceaccount/v1/serviceaccount_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/serviceaccount.v1/serviceaccount_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/serviceaccount/v1/services/gen_pb2.py b/arista/serviceaccount/v1/services/gen_pb2.py index b3497b3b..1ba62987 100644 --- a/arista/serviceaccount/v1/services/gen_pb2.py +++ b/arista/serviceaccount/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/serviceaccount.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/serviceaccount.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -25,8 +35,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.serviceaccount.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZTgithub.com/aristanetworks/cloudvision-go/api/arista/serviceaccount.v1;serviceaccount' _globals['_METARESPONSE']._serialized_start=271 _globals['_METARESPONSE']._serialized_end=419 diff --git a/arista/serviceaccount/v1/services/gen_pb2_grpc.py b/arista/serviceaccount/v1/services/gen_pb2_grpc.py index eb91dde7..9bfeb0e2 100644 --- a/arista/serviceaccount/v1/services/gen_pb2_grpc.py +++ b/arista/serviceaccount/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.serviceaccount.v1.services import gen_pb2 as arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/serviceaccount.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class AccountServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,32 +38,32 @@ def __init__(self, channel): '/arista.serviceaccount.v1.AccountService/GetOne', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.serviceaccount.v1.AccountService/GetSome', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountSomeRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.serviceaccount.v1.AccountService/GetAll', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.serviceaccount.v1.AccountService/Subscribe', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.serviceaccount.v1.AccountService/GetMeta', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.serviceaccount.v1.AccountService/SubscribeMeta', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) class AccountServiceServicer(object): @@ -122,6 +142,7 @@ def add_AccountServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.serviceaccount.v1.AccountService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.serviceaccount.v1.AccountService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -139,11 +160,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.AccountService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.AccountService/GetOne', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -156,11 +187,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.AccountService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.AccountService/GetSome', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountSomeRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -173,11 +214,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.AccountService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.AccountService/GetAll', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -190,11 +241,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.AccountService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.AccountService/Subscribe', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -207,11 +268,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.AccountService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.AccountService/GetMeta', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -224,11 +295,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.AccountService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.AccountService/SubscribeMeta', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class AccountConfigServiceStub(object): @@ -244,57 +325,57 @@ def __init__(self, channel): '/arista.serviceaccount.v1.AccountConfigService/GetOne', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.serviceaccount.v1.AccountConfigService/GetSome', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.serviceaccount.v1.AccountConfigService/GetAll', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.serviceaccount.v1.AccountConfigService/Subscribe', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.serviceaccount.v1.AccountConfigService/GetMeta', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.serviceaccount.v1.AccountConfigService/SubscribeMeta', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.serviceaccount.v1.AccountConfigService/Set', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSetRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.serviceaccount.v1.AccountConfigService/SetSome', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.serviceaccount.v1.AccountConfigService/Delete', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.serviceaccount.v1.AccountConfigService/DeleteSome', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.serviceaccount.v1.AccountConfigService/DeleteAll', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteAllResponse.FromString, - ) + _registered_method=True) class AccountConfigServiceServicer(object): @@ -428,6 +509,7 @@ def add_AccountConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.serviceaccount.v1.AccountConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.serviceaccount.v1.AccountConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -445,11 +527,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.AccountConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.AccountConfigService/GetOne', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -462,11 +554,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.AccountConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.AccountConfigService/GetSome', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSomeRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -479,11 +581,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.AccountConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.AccountConfigService/GetAll', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -496,11 +608,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.AccountConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.AccountConfigService/Subscribe', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -513,11 +635,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.AccountConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.AccountConfigService/GetMeta', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -530,11 +662,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.AccountConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.AccountConfigService/SubscribeMeta', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -547,11 +689,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.AccountConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.AccountConfigService/Set', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSetRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -564,11 +716,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.AccountConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.AccountConfigService/SetSome', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSetSomeRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -581,11 +743,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.AccountConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.AccountConfigService/Delete', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -598,11 +770,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.AccountConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.AccountConfigService/DeleteSome', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteSomeRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -615,11 +797,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.AccountConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.AccountConfigService/DeleteAll', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteAllRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.AccountConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class TokenServiceStub(object): @@ -635,32 +827,32 @@ def __init__(self, channel): '/arista.serviceaccount.v1.TokenService/GetOne', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.serviceaccount.v1.TokenService/GetSome', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenSomeRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.serviceaccount.v1.TokenService/GetAll', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.serviceaccount.v1.TokenService/Subscribe', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.serviceaccount.v1.TokenService/GetMeta', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.serviceaccount.v1.TokenService/SubscribeMeta', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) class TokenServiceServicer(object): @@ -739,6 +931,7 @@ def add_TokenServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.serviceaccount.v1.TokenService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.serviceaccount.v1.TokenService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -756,11 +949,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.TokenService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.TokenService/GetOne', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -773,11 +976,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.TokenService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.TokenService/GetSome', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenSomeRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -790,11 +1003,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.TokenService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.TokenService/GetAll', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -807,11 +1030,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.TokenService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.TokenService/Subscribe', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -824,11 +1057,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.TokenService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.TokenService/GetMeta', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -841,11 +1084,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.TokenService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.TokenService/SubscribeMeta', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class TokenConfigServiceStub(object): @@ -861,57 +1114,57 @@ def __init__(self, channel): '/arista.serviceaccount.v1.TokenConfigService/GetOne', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.serviceaccount.v1.TokenConfigService/GetSome', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.serviceaccount.v1.TokenConfigService/GetAll', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.serviceaccount.v1.TokenConfigService/Subscribe', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.serviceaccount.v1.TokenConfigService/GetMeta', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.serviceaccount.v1.TokenConfigService/SubscribeMeta', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.serviceaccount.v1.TokenConfigService/Set', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSetRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.serviceaccount.v1.TokenConfigService/SetSome', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.serviceaccount.v1.TokenConfigService/Delete', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.serviceaccount.v1.TokenConfigService/DeleteSome', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.serviceaccount.v1.TokenConfigService/DeleteAll', request_serializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteAllResponse.FromString, - ) + _registered_method=True) class TokenConfigServiceServicer(object): @@ -1045,6 +1298,7 @@ def add_TokenConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.serviceaccount.v1.TokenConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.serviceaccount.v1.TokenConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1062,11 +1316,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.TokenConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.TokenConfigService/GetOne', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1079,11 +1343,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.TokenConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.TokenConfigService/GetSome', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSomeRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1096,11 +1370,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.TokenConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.TokenConfigService/GetAll', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1113,11 +1397,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.TokenConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.TokenConfigService/Subscribe', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1130,11 +1424,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.TokenConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.TokenConfigService/GetMeta', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1147,11 +1451,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.TokenConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.TokenConfigService/SubscribeMeta', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigStreamRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -1164,11 +1478,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.TokenConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.TokenConfigService/Set', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSetRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -1181,11 +1505,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.TokenConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.TokenConfigService/SetSome', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSetSomeRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -1198,11 +1532,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.serviceaccount.v1.TokenConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.serviceaccount.v1.TokenConfigService/Delete', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -1215,11 +1559,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.TokenConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.TokenConfigService/DeleteSome', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteSomeRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1232,8 +1586,18 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.serviceaccount.v1.TokenConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.serviceaccount.v1.TokenConfigService/DeleteAll', arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteAllRequest.SerializeToString, arista_dot_serviceaccount_dot_v1_dot_services_dot_gen__pb2.TokenConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/studio/v1/services/gen_pb2.py b/arista/studio/v1/services/gen_pb2.py index 3ae908f9..cadee875 100644 --- a/arista/studio/v1/services/gen_pb2.py +++ b/arista/studio/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/studio.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/studio.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -25,8 +35,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.studio.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZDgithub.com/aristanetworks/cloudvision-go/api/arista/studio.v1;studio' _globals['_METARESPONSE']._serialized_start=239 _globals['_METARESPONSE']._serialized_end=387 diff --git a/arista/studio/v1/services/gen_pb2_grpc.py b/arista/studio/v1/services/gen_pb2_grpc.py index 01d02aae..514fffd5 100644 --- a/arista/studio/v1/services/gen_pb2_grpc.py +++ b/arista/studio/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.studio.v1.services import gen_pb2 as arista_dot_studio_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/studio.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class AssignedTagsServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,42 +38,42 @@ def __init__(self, channel): '/arista.studio.v1.AssignedTagsService/GetOne', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.studio.v1.AssignedTagsService/GetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.studio.v1.AssignedTagsService/GetAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.studio.v1.AssignedTagsService/Subscribe', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.studio.v1.AssignedTagsService/GetMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.studio.v1.AssignedTagsService/SubscribeMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.studio.v1.AssignedTagsService/GetAllBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.studio.v1.AssignedTagsService/SubscribeBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsBatchedStreamResponse.FromString, - ) + _registered_method=True) class AssignedTagsServiceServicer(object): @@ -154,6 +174,7 @@ def add_AssignedTagsServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.studio.v1.AssignedTagsService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.studio.v1.AssignedTagsService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -171,11 +192,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AssignedTagsService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AssignedTagsService/GetOne', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -188,11 +219,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsService/GetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -205,11 +246,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsService/GetAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -222,11 +273,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsService/Subscribe', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -239,11 +300,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AssignedTagsService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AssignedTagsService/GetMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -256,11 +327,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsService/SubscribeMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -273,11 +354,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsService/GetAllBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -290,11 +381,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsService/SubscribeBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class AssignedTagsConfigServiceStub(object): @@ -310,67 +411,67 @@ def __init__(self, channel): '/arista.studio.v1.AssignedTagsConfigService/GetOne', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.studio.v1.AssignedTagsConfigService/GetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.studio.v1.AssignedTagsConfigService/GetAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.studio.v1.AssignedTagsConfigService/Subscribe', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.studio.v1.AssignedTagsConfigService/GetMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.studio.v1.AssignedTagsConfigService/SubscribeMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.studio.v1.AssignedTagsConfigService/Set', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSetRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.studio.v1.AssignedTagsConfigService/SetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.studio.v1.AssignedTagsConfigService/Delete', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.studio.v1.AssignedTagsConfigService/DeleteSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.studio.v1.AssignedTagsConfigService/DeleteAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.studio.v1.AssignedTagsConfigService/GetAllBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.studio.v1.AssignedTagsConfigService/SubscribeBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class AssignedTagsConfigServiceServicer(object): @@ -526,6 +627,7 @@ def add_AssignedTagsConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.studio.v1.AssignedTagsConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.studio.v1.AssignedTagsConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -543,11 +645,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AssignedTagsConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/GetOne', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -560,11 +672,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/GetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -577,11 +699,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/GetAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -594,11 +726,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/Subscribe', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -611,11 +753,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AssignedTagsConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/GetMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -628,11 +780,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/SubscribeMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -645,11 +807,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AssignedTagsConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/Set', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSetRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -662,11 +834,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/SetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSetSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -679,11 +861,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AssignedTagsConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/Delete', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -696,11 +888,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/DeleteSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -713,11 +915,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/DeleteAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteAllRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -730,11 +942,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/GetAllBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -747,11 +969,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AssignedTagsConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AssignedTagsConfigService/SubscribeBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AssignedTagsConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class AutofillActionServiceStub(object): @@ -767,42 +999,42 @@ def __init__(self, channel): '/arista.studio.v1.AutofillActionService/GetOne', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.studio.v1.AutofillActionService/GetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.studio.v1.AutofillActionService/GetAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.studio.v1.AutofillActionService/Subscribe', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.studio.v1.AutofillActionService/GetMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.studio.v1.AutofillActionService/SubscribeMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.studio.v1.AutofillActionService/GetAllBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.studio.v1.AutofillActionService/SubscribeBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionBatchedStreamResponse.FromString, - ) + _registered_method=True) class AutofillActionServiceServicer(object): @@ -903,6 +1135,7 @@ def add_AutofillActionServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.studio.v1.AutofillActionService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.studio.v1.AutofillActionService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -920,11 +1153,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AutofillActionService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AutofillActionService/GetOne', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -937,11 +1180,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionService/GetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -954,11 +1207,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionService/GetAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -971,11 +1234,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionService/Subscribe', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -988,11 +1261,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AutofillActionService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AutofillActionService/GetMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1005,11 +1288,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionService/SubscribeMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1022,11 +1315,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionService/GetAllBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1039,11 +1342,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionService/SubscribeBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class AutofillActionConfigServiceStub(object): @@ -1059,67 +1372,67 @@ def __init__(self, channel): '/arista.studio.v1.AutofillActionConfigService/GetOne', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.studio.v1.AutofillActionConfigService/GetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.studio.v1.AutofillActionConfigService/GetAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.studio.v1.AutofillActionConfigService/Subscribe', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.studio.v1.AutofillActionConfigService/GetMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.studio.v1.AutofillActionConfigService/SubscribeMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.studio.v1.AutofillActionConfigService/Set', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSetRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.studio.v1.AutofillActionConfigService/SetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.studio.v1.AutofillActionConfigService/Delete', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.studio.v1.AutofillActionConfigService/DeleteSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.studio.v1.AutofillActionConfigService/DeleteAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.studio.v1.AutofillActionConfigService/GetAllBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.studio.v1.AutofillActionConfigService/SubscribeBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class AutofillActionConfigServiceServicer(object): @@ -1275,6 +1588,7 @@ def add_AutofillActionConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.studio.v1.AutofillActionConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.studio.v1.AutofillActionConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1292,11 +1606,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AutofillActionConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/GetOne', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1309,11 +1633,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/GetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1326,11 +1660,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/GetAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1343,11 +1687,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/Subscribe', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1360,11 +1714,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AutofillActionConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/GetMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1377,11 +1741,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/SubscribeMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -1394,11 +1768,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AutofillActionConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/Set', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSetRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -1411,11 +1795,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/SetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSetSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -1428,11 +1822,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.AutofillActionConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/Delete', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -1445,11 +1849,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/DeleteSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1462,11 +1876,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/DeleteAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteAllRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1479,11 +1903,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/GetAllBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1496,11 +1930,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.AutofillActionConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.AutofillActionConfigService/SubscribeBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.AutofillActionConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class InputsServiceStub(object): @@ -1516,42 +1960,42 @@ def __init__(self, channel): '/arista.studio.v1.InputsService/GetOne', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.studio.v1.InputsService/GetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.studio.v1.InputsService/GetAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.studio.v1.InputsService/Subscribe', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.studio.v1.InputsService/GetMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.studio.v1.InputsService/SubscribeMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.studio.v1.InputsService/GetAllBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.studio.v1.InputsService/SubscribeBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsBatchedStreamResponse.FromString, - ) + _registered_method=True) class InputsServiceServicer(object): @@ -1652,6 +2096,7 @@ def add_InputsServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.studio.v1.InputsService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.studio.v1.InputsService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1669,11 +2114,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.InputsService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.InputsService/GetOne', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1686,11 +2141,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsService/GetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1703,11 +2168,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsService/GetAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1720,11 +2195,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsService/Subscribe', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1737,11 +2222,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.InputsService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.InputsService/GetMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1754,11 +2249,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsService/SubscribeMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1771,11 +2276,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsService/GetAllBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1788,11 +2303,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsService/SubscribeBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class InputsConfigServiceStub(object): @@ -1808,67 +2333,67 @@ def __init__(self, channel): '/arista.studio.v1.InputsConfigService/GetOne', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.studio.v1.InputsConfigService/GetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.studio.v1.InputsConfigService/GetAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.studio.v1.InputsConfigService/Subscribe', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.studio.v1.InputsConfigService/GetMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.studio.v1.InputsConfigService/SubscribeMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.studio.v1.InputsConfigService/Set', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSetRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.studio.v1.InputsConfigService/SetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.studio.v1.InputsConfigService/Delete', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.studio.v1.InputsConfigService/DeleteSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.studio.v1.InputsConfigService/DeleteAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.studio.v1.InputsConfigService/GetAllBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.studio.v1.InputsConfigService/SubscribeBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class InputsConfigServiceServicer(object): @@ -2024,6 +2549,7 @@ def add_InputsConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.studio.v1.InputsConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.studio.v1.InputsConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -2041,11 +2567,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.InputsConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.InputsConfigService/GetOne', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -2058,11 +2594,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsConfigService/GetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -2075,11 +2621,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsConfigService/GetAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -2092,11 +2648,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsConfigService/Subscribe', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -2109,11 +2675,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.InputsConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.InputsConfigService/GetMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -2126,11 +2702,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsConfigService/SubscribeMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -2143,11 +2729,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.InputsConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.InputsConfigService/Set', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSetRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -2160,11 +2756,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsConfigService/SetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSetSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -2177,11 +2783,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.InputsConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.InputsConfigService/Delete', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -2194,11 +2810,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsConfigService/DeleteSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -2211,11 +2837,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsConfigService/DeleteAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteAllRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -2228,11 +2864,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsConfigService/GetAllBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -2245,11 +2891,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.InputsConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.InputsConfigService/SubscribeBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.InputsConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class SecretInputServiceStub(object): @@ -2265,42 +2921,42 @@ def __init__(self, channel): '/arista.studio.v1.SecretInputService/GetOne', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.studio.v1.SecretInputService/GetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.studio.v1.SecretInputService/GetAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.studio.v1.SecretInputService/Subscribe', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.studio.v1.SecretInputService/GetMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.studio.v1.SecretInputService/SubscribeMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.studio.v1.SecretInputService/GetAllBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.studio.v1.SecretInputService/SubscribeBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputBatchedStreamResponse.FromString, - ) + _registered_method=True) class SecretInputServiceServicer(object): @@ -2401,6 +3057,7 @@ def add_SecretInputServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.studio.v1.SecretInputService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.studio.v1.SecretInputService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -2418,11 +3075,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.SecretInputService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.SecretInputService/GetOne', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -2435,11 +3102,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.SecretInputService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.SecretInputService/GetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -2452,11 +3129,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.SecretInputService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.SecretInputService/GetAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -2469,11 +3156,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.SecretInputService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.SecretInputService/Subscribe', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -2486,11 +3183,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.SecretInputService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.SecretInputService/GetMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -2503,11 +3210,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.SecretInputService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.SecretInputService/SubscribeMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -2520,11 +3237,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.SecretInputService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.SecretInputService/GetAllBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -2537,11 +3264,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.SecretInputService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.SecretInputService/SubscribeBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.SecretInputBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class StudioServiceStub(object): @@ -2557,42 +3294,42 @@ def __init__(self, channel): '/arista.studio.v1.StudioService/GetOne', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.studio.v1.StudioService/GetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.studio.v1.StudioService/GetAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.studio.v1.StudioService/Subscribe', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.studio.v1.StudioService/GetMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.studio.v1.StudioService/SubscribeMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.studio.v1.StudioService/GetAllBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.studio.v1.StudioService/SubscribeBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioBatchedStreamResponse.FromString, - ) + _registered_method=True) class StudioServiceServicer(object): @@ -2693,6 +3430,7 @@ def add_StudioServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.studio.v1.StudioService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.studio.v1.StudioService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -2710,11 +3448,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.StudioService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.StudioService/GetOne', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -2727,11 +3475,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioService/GetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -2744,11 +3502,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioService/GetAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -2761,11 +3529,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioService/Subscribe', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -2778,11 +3556,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.StudioService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.StudioService/GetMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -2795,11 +3583,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioService/SubscribeMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -2812,11 +3610,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioService/GetAllBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -2829,11 +3637,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioService/SubscribeBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class StudioConfigServiceStub(object): @@ -2849,67 +3667,67 @@ def __init__(self, channel): '/arista.studio.v1.StudioConfigService/GetOne', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.studio.v1.StudioConfigService/GetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.studio.v1.StudioConfigService/GetAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.studio.v1.StudioConfigService/Subscribe', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.studio.v1.StudioConfigService/GetMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.studio.v1.StudioConfigService/SubscribeMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.studio.v1.StudioConfigService/Set', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSetRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.studio.v1.StudioConfigService/SetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.studio.v1.StudioConfigService/Delete', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.studio.v1.StudioConfigService/DeleteSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.studio.v1.StudioConfigService/DeleteAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.studio.v1.StudioConfigService/GetAllBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.studio.v1.StudioConfigService/SubscribeBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class StudioConfigServiceServicer(object): @@ -3065,6 +3883,7 @@ def add_StudioConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.studio.v1.StudioConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.studio.v1.StudioConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -3082,11 +3901,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.StudioConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.StudioConfigService/GetOne', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -3099,11 +3928,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioConfigService/GetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -3116,11 +3955,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioConfigService/GetAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -3133,11 +3982,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioConfigService/Subscribe', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -3150,11 +4009,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.StudioConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.StudioConfigService/GetMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -3167,11 +4036,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioConfigService/SubscribeMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -3184,11 +4063,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.StudioConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.StudioConfigService/Set', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSetRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -3201,11 +4090,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioConfigService/SetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSetSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -3218,11 +4117,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.StudioConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.StudioConfigService/Delete', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -3235,11 +4144,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioConfigService/DeleteSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteSomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -3252,11 +4171,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioConfigService/DeleteAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteAllRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -3269,11 +4198,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioConfigService/GetAllBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -3286,11 +4225,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioConfigService/SubscribeBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class StudioSummaryServiceStub(object): @@ -3306,42 +4255,42 @@ def __init__(self, channel): '/arista.studio.v1.StudioSummaryService/GetOne', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.studio.v1.StudioSummaryService/GetSome', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummarySomeRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummarySomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.studio.v1.StudioSummaryService/GetAll', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.studio.v1.StudioSummaryService/Subscribe', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.studio.v1.StudioSummaryService/GetMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.studio.v1.StudioSummaryService/SubscribeMeta', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.studio.v1.StudioSummaryService/GetAllBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.studio.v1.StudioSummaryService/SubscribeBatched', request_serializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryBatchedStreamResponse.FromString, - ) + _registered_method=True) class StudioSummaryServiceServicer(object): @@ -3442,6 +4391,7 @@ def add_StudioSummaryServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.studio.v1.StudioSummaryService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.studio.v1.StudioSummaryService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -3459,11 +4409,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.StudioSummaryService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.StudioSummaryService/GetOne', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -3476,11 +4436,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioSummaryService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioSummaryService/GetSome', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummarySomeRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummarySomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -3493,11 +4463,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioSummaryService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioSummaryService/GetAll', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -3510,11 +4490,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioSummaryService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioSummaryService/Subscribe', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -3527,11 +4517,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.studio.v1.StudioSummaryService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.studio.v1.StudioSummaryService/GetMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -3544,11 +4544,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioSummaryService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioSummaryService/SubscribeMeta', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -3561,11 +4571,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioSummaryService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioSummaryService/GetAllBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -3578,8 +4598,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.studio.v1.StudioSummaryService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.studio.v1.StudioSummaryService/SubscribeBatched', arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryBatchedStreamRequest.SerializeToString, arista_dot_studio_dot_v1_dot_services_dot_gen__pb2.StudioSummaryBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/studio/v1/studio_pb2.py b/arista/studio/v1/studio_pb2.py index ff46388a..631b1215 100644 --- a/arista/studio/v1/studio_pb2.py +++ b/arista/studio/v1/studio_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/studio.v1/studio.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/studio.v1/studio.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -23,40 +33,40 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.studio.v1.studio_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZDgithub.com/aristanetworks/cloudvision-go/api/arista/studio.v1;studio\272\232\031\023repeated-key-fields' - _globals['_STUDIOKEY']._options = None + _globals['_STUDIOKEY']._loaded_options = None _globals['_STUDIOKEY']._serialized_options = b'\200\216\031\001' - _globals['_STUDIOCONFIG']._options = None + _globals['_STUDIOCONFIG']._loaded_options = None _globals['_STUDIOCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_STUDIOSUMMARY']._options = None + _globals['_STUDIOSUMMARY']._loaded_options = None _globals['_STUDIOSUMMARY']._serialized_options = b'\372\215\031\002ro' - _globals['_ENTITIES_VALUESENTRY']._options = None + _globals['_ENTITIES_VALUESENTRY']._loaded_options = None _globals['_ENTITIES_VALUESENTRY']._serialized_options = b'8\001' - _globals['_STUDIO']._options = None + _globals['_STUDIO']._loaded_options = None _globals['_STUDIO']._serialized_options = b'\372\215\031\002ro' - _globals['_ASSIGNEDTAGSCONFIG']._options = None + _globals['_ASSIGNEDTAGSCONFIG']._loaded_options = None _globals['_ASSIGNEDTAGSCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_ASSIGNEDTAGS']._options = None + _globals['_ASSIGNEDTAGS']._loaded_options = None _globals['_ASSIGNEDTAGS']._serialized_options = b'\372\215\031\002ro' - _globals['_INPUTSKEY']._options = None + _globals['_INPUTSKEY']._loaded_options = None _globals['_INPUTSKEY']._serialized_options = b'\200\216\031\001' - _globals['_INPUTSCONFIG']._options = None + _globals['_INPUTSCONFIG']._loaded_options = None _globals['_INPUTSCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_INPUTS']._options = None + _globals['_INPUTS']._loaded_options = None _globals['_INPUTS']._serialized_options = b'\372\215\031\002ro' - _globals['_INPUTFIELDS_VALUESENTRY']._options = None + _globals['_INPUTFIELDS_VALUESENTRY']._loaded_options = None _globals['_INPUTFIELDS_VALUESENTRY']._serialized_options = b'8\001' - _globals['_SECRETINPUT']._options = None + _globals['_SECRETINPUT']._loaded_options = None _globals['_SECRETINPUT']._serialized_options = b'\372\215\031\002ro' - _globals['_AUTOFILLACTIONKEY']._options = None + _globals['_AUTOFILLACTIONKEY']._loaded_options = None _globals['_AUTOFILLACTIONKEY']._serialized_options = b'\200\216\031\001' - _globals['_AUTOFILLACTIONCONFIG']._options = None + _globals['_AUTOFILLACTIONCONFIG']._loaded_options = None _globals['_AUTOFILLACTIONCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_AUTOFILLACTION']._options = None + _globals['_AUTOFILLACTION']._loaded_options = None _globals['_AUTOFILLACTION']._serialized_options = b'\372\215\031\002ro' - _globals['_AUTOFILLARGUMENTPROVIDERS_VALUESENTRY']._options = None + _globals['_AUTOFILLARGUMENTPROVIDERS_VALUESENTRY']._loaded_options = None _globals['_AUTOFILLARGUMENTPROVIDERS_VALUESENTRY']._serialized_options = b'8\001' _globals['_ENTITYTYPE']._serialized_start=7330 _globals['_ENTITYTYPE']._serialized_end=7576 diff --git a/arista/studio/v1/studio_pb2_grpc.py b/arista/studio/v1/studio_pb2_grpc.py index 2daafffe..0a6ef097 100644 --- a/arista/studio/v1/studio_pb2_grpc.py +++ b/arista/studio/v1/studio_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/studio.v1/studio_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/subscriptions/subscriptions_pb2.py b/arista/subscriptions/subscriptions_pb2.py index 82043939..ad11ac6d 100644 --- a/arista/subscriptions/subscriptions_pb2.py +++ b/arista/subscriptions/subscriptions_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/subscriptions/subscriptions.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/subscriptions/subscriptions.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,8 +29,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.subscriptions.subscriptions_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZAgithub.com/aristanetworks/cloudvision-go/api/arista/subscriptions' _globals['_OPERATION']._serialized_start=66 _globals['_OPERATION']._serialized_end=160 diff --git a/arista/subscriptions/subscriptions_pb2_grpc.py b/arista/subscriptions/subscriptions_pb2_grpc.py index 2daafffe..f069d1c6 100644 --- a/arista/subscriptions/subscriptions_pb2_grpc.py +++ b/arista/subscriptions/subscriptions_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/subscriptions/subscriptions_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/tag/v2/services/gen_pb2.py b/arista/tag/v2/services/gen_pb2.py index 16e04a78..b128ff35 100644 --- a/arista/tag/v2/services/gen_pb2.py +++ b/arista/tag/v2/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/tag.v2/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/tag.v2/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -25,8 +35,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.tag.v2.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z>github.com/aristanetworks/cloudvision-go/api/arista/tag.v2;tag' _globals['_METARESPONSE']._serialized_start=227 _globals['_METARESPONSE']._serialized_end=375 diff --git a/arista/tag/v2/services/gen_pb2_grpc.py b/arista/tag/v2/services/gen_pb2_grpc.py index 4d05ef9e..12bcbbd0 100644 --- a/arista/tag/v2/services/gen_pb2_grpc.py +++ b/arista/tag/v2/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.tag.v2.services import gen_pb2 as arista_dot_tag_dot_v2_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/tag.v2/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class TagServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,42 +38,42 @@ def __init__(self, channel): '/arista.tag.v2.TagService/GetOne', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.tag.v2.TagService/GetSome', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagSomeRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.tag.v2.TagService/GetAll', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.tag.v2.TagService/Subscribe', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.tag.v2.TagService/GetMeta', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.tag.v2.TagService/SubscribeMeta', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.tag.v2.TagService/GetAllBatched', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.tag.v2.TagService/SubscribeBatched', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagBatchedStreamResponse.FromString, - ) + _registered_method=True) class TagServiceServicer(object): @@ -154,6 +174,7 @@ def add_TagServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.tag.v2.TagService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.tag.v2.TagService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -171,11 +192,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagService/GetOne', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -188,11 +219,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagService/GetSome', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagSomeRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -205,11 +246,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagService/GetAll', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -222,11 +273,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagService/Subscribe', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -239,11 +300,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagService/GetMeta', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -256,11 +327,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagService/SubscribeMeta', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -273,11 +354,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagService/GetAllBatched', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagBatchedStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -290,11 +381,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagService/SubscribeBatched', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagBatchedStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class TagAssignmentServiceStub(object): @@ -310,42 +411,42 @@ def __init__(self, channel): '/arista.tag.v2.TagAssignmentService/GetOne', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.tag.v2.TagAssignmentService/GetSome', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentSomeRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.tag.v2.TagAssignmentService/GetAll', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.tag.v2.TagAssignmentService/Subscribe', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.tag.v2.TagAssignmentService/GetMeta', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.tag.v2.TagAssignmentService/SubscribeMeta', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.tag.v2.TagAssignmentService/GetAllBatched', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.tag.v2.TagAssignmentService/SubscribeBatched', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentBatchedStreamResponse.FromString, - ) + _registered_method=True) class TagAssignmentServiceServicer(object): @@ -446,6 +547,7 @@ def add_TagAssignmentServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.tag.v2.TagAssignmentService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.tag.v2.TagAssignmentService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -463,11 +565,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagAssignmentService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagAssignmentService/GetOne', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -480,11 +592,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentService/GetSome', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentSomeRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -497,11 +619,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentService/GetAll', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -514,11 +646,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentService/Subscribe', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -531,11 +673,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagAssignmentService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagAssignmentService/GetMeta', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -548,11 +700,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentService/SubscribeMeta', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -565,11 +727,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentService/GetAllBatched', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentBatchedStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -582,11 +754,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentService/SubscribeBatched', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentBatchedStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class TagAssignmentConfigServiceStub(object): @@ -602,67 +784,67 @@ def __init__(self, channel): '/arista.tag.v2.TagAssignmentConfigService/GetOne', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.tag.v2.TagAssignmentConfigService/GetSome', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.tag.v2.TagAssignmentConfigService/GetAll', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.tag.v2.TagAssignmentConfigService/Subscribe', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.tag.v2.TagAssignmentConfigService/GetMeta', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.tag.v2.TagAssignmentConfigService/SubscribeMeta', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.tag.v2.TagAssignmentConfigService/Set', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSetRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.tag.v2.TagAssignmentConfigService/SetSome', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.tag.v2.TagAssignmentConfigService/Delete', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.tag.v2.TagAssignmentConfigService/DeleteSome', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.tag.v2.TagAssignmentConfigService/DeleteAll', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.tag.v2.TagAssignmentConfigService/GetAllBatched', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.tag.v2.TagAssignmentConfigService/SubscribeBatched', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class TagAssignmentConfigServiceServicer(object): @@ -818,6 +1000,7 @@ def add_TagAssignmentConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.tag.v2.TagAssignmentConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.tag.v2.TagAssignmentConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -835,11 +1018,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagAssignmentConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/GetOne', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -852,11 +1045,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/GetSome', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSomeRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -869,11 +1072,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/GetAll', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -886,11 +1099,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/Subscribe', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -903,11 +1126,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagAssignmentConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/GetMeta', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -920,11 +1153,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/SubscribeMeta', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -937,11 +1180,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagAssignmentConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/Set', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSetRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -954,11 +1207,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/SetSome', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSetSomeRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -971,11 +1234,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagAssignmentConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/Delete', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -988,11 +1261,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/DeleteSome', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteSomeRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1005,11 +1288,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/DeleteAll', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteAllRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1022,11 +1315,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/GetAllBatched', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigBatchedStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1039,11 +1342,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagAssignmentConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagAssignmentConfigService/SubscribeBatched', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigBatchedStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagAssignmentConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class TagConfigServiceStub(object): @@ -1059,67 +1372,67 @@ def __init__(self, channel): '/arista.tag.v2.TagConfigService/GetOne', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.tag.v2.TagConfigService/GetSome', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.tag.v2.TagConfigService/GetAll', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.tag.v2.TagConfigService/Subscribe', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.tag.v2.TagConfigService/GetMeta', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.tag.v2.TagConfigService/SubscribeMeta', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.tag.v2.TagConfigService/Set', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSetRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.tag.v2.TagConfigService/SetSome', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.tag.v2.TagConfigService/Delete', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.tag.v2.TagConfigService/DeleteSome', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.tag.v2.TagConfigService/DeleteAll', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.tag.v2.TagConfigService/GetAllBatched', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.tag.v2.TagConfigService/SubscribeBatched', request_serializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class TagConfigServiceServicer(object): @@ -1275,6 +1588,7 @@ def add_TagConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.tag.v2.TagConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.tag.v2.TagConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1292,11 +1606,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagConfigService/GetOne', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1309,11 +1633,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagConfigService/GetSome', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSomeRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1326,11 +1660,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagConfigService/GetAll', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1343,11 +1687,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagConfigService/Subscribe', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1360,11 +1714,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagConfigService/GetMeta', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1377,11 +1741,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagConfigService/SubscribeMeta', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -1394,11 +1768,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagConfigService/Set', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSetRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -1411,11 +1795,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagConfigService/SetSome', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSetSomeRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -1428,11 +1822,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.tag.v2.TagConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.tag.v2.TagConfigService/Delete', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -1445,11 +1849,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagConfigService/DeleteSome', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteSomeRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1462,11 +1876,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagConfigService/DeleteAll', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteAllRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1479,11 +1903,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagConfigService/GetAllBatched', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigBatchedStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1496,8 +1930,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.tag.v2.TagConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.tag.v2.TagConfigService/SubscribeBatched', arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigBatchedStreamRequest.SerializeToString, arista_dot_tag_dot_v2_dot_services_dot_gen__pb2.TagConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/tag/v2/tag_pb2.py b/arista/tag/v2/tag_pb2.py index 9ad020c8..9c75d0b1 100644 --- a/arista/tag/v2/tag_pb2.py +++ b/arista/tag/v2/tag_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/tag.v2/tag.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/tag.v2/tag.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,20 +31,20 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.tag.v2.tag_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z>github.com/aristanetworks/cloudvision-go/api/arista/tag.v2;tag' - _globals['_TAGKEY']._options = None + _globals['_TAGKEY']._loaded_options = None _globals['_TAGKEY']._serialized_options = b'\200\216\031\001' - _globals['_TAGCONFIG']._options = None + _globals['_TAGCONFIG']._loaded_options = None _globals['_TAGCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_TAG']._options = None + _globals['_TAG']._loaded_options = None _globals['_TAG']._serialized_options = b'\372\215\031\002ro' - _globals['_TAGASSIGNMENTKEY']._options = None + _globals['_TAGASSIGNMENTKEY']._loaded_options = None _globals['_TAGASSIGNMENTKEY']._serialized_options = b'\200\216\031\001' - _globals['_TAGASSIGNMENTCONFIG']._options = None + _globals['_TAGASSIGNMENTCONFIG']._loaded_options = None _globals['_TAGASSIGNMENTCONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_TAGASSIGNMENT']._options = None + _globals['_TAGASSIGNMENT']._loaded_options = None _globals['_TAGASSIGNMENT']._serialized_options = b'\372\215\031\002ro' _globals['_ELEMENTTYPE']._serialized_start=1187 _globals['_ELEMENTTYPE']._serialized_end=1283 diff --git a/arista/tag/v2/tag_pb2_grpc.py b/arista/tag/v2/tag_pb2_grpc.py index 2daafffe..60d0ac6e 100644 --- a/arista/tag/v2/tag_pb2_grpc.py +++ b/arista/tag/v2/tag_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/tag.v2/tag_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/time/time_pb2.py b/arista/time/time_pb2.py index 4c4d61cb..104f93bc 100644 --- a/arista/time/time_pb2.py +++ b/arista/time/time_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/time/time.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/time/time.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,8 +30,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.time.time_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z8github.com/aristanetworks/cloudvision-go/api/arista/time' _globals['_TIMEBOUNDS']._serialized_start=72 _globals['_TIMEBOUNDS']._serialized_end=168 diff --git a/arista/time/time_pb2_grpc.py b/arista/time/time_pb2_grpc.py index 2daafffe..c53a81a4 100644 --- a/arista/time/time_pb2_grpc.py +++ b/arista/time/time_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/time/time_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/arista/workspace/v1/services/gen_pb2.py b/arista/workspace/v1/services/gen_pb2.py index 9ef8a2d8..f98d62e7 100644 --- a/arista/workspace/v1/services/gen_pb2.py +++ b/arista/workspace/v1/services/gen_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/workspace.v1/services.gen.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/workspace.v1/services.gen.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -25,8 +35,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.workspace.v1.services.gen_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZJgithub.com/aristanetworks/cloudvision-go/api/arista/workspace.v1;workspace' _globals['_METARESPONSE']._serialized_start=251 _globals['_METARESPONSE']._serialized_end=399 diff --git a/arista/workspace/v1/services/gen_pb2_grpc.py b/arista/workspace/v1/services/gen_pb2_grpc.py index 41c769a5..826b9604 100644 --- a/arista/workspace/v1/services/gen_pb2_grpc.py +++ b/arista/workspace/v1/services/gen_pb2_grpc.py @@ -1,9 +1,29 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings from arista.workspace.v1.services import gen_pb2 as arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2 +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/workspace.v1/services.gen_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) + class WorkspaceServiceStub(object): """Missing associated documentation comment in .proto file.""" @@ -18,42 +38,42 @@ def __init__(self, channel): '/arista.workspace.v1.WorkspaceService/GetOne', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.workspace.v1.WorkspaceService/GetSome', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSomeRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.workspace.v1.WorkspaceService/GetAll', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.workspace.v1.WorkspaceService/Subscribe', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.workspace.v1.WorkspaceService/GetMeta', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.workspace.v1.WorkspaceService/SubscribeMeta', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.workspace.v1.WorkspaceService/GetAllBatched', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.workspace.v1.WorkspaceService/SubscribeBatched', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBatchedStreamResponse.FromString, - ) + _registered_method=True) class WorkspaceServiceServicer(object): @@ -154,6 +174,7 @@ def add_WorkspaceServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.workspace.v1.WorkspaceService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.workspace.v1.WorkspaceService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -171,11 +192,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceService/GetOne', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -188,11 +219,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceService/GetSome', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSomeRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -205,11 +246,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceService/GetAll', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -222,11 +273,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceService/Subscribe', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -239,11 +300,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceService/GetMeta', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -256,11 +327,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceService/SubscribeMeta', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -273,11 +354,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceService/GetAllBatched', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBatchedStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -290,11 +381,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceService/SubscribeBatched', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBatchedStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class WorkspaceBuildServiceStub(object): @@ -310,42 +411,42 @@ def __init__(self, channel): '/arista.workspace.v1.WorkspaceBuildService/GetOne', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildService/GetSome', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildSomeRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildService/GetAll', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildService/Subscribe', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.workspace.v1.WorkspaceBuildService/GetMeta', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildService/SubscribeMeta', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildService/GetAllBatched', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildService/SubscribeBatched', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildBatchedStreamResponse.FromString, - ) + _registered_method=True) class WorkspaceBuildServiceServicer(object): @@ -446,6 +547,7 @@ def add_WorkspaceBuildServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.workspace.v1.WorkspaceBuildService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.workspace.v1.WorkspaceBuildService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -463,11 +565,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceBuildService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceBuildService/GetOne', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -480,11 +592,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildService/GetSome', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildSomeRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -497,11 +619,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildService/GetAll', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -514,11 +646,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildService/Subscribe', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -531,11 +673,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceBuildService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceBuildService/GetMeta', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -548,11 +700,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildService/SubscribeMeta', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -565,11 +727,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildService/GetAllBatched', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildBatchedStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -582,11 +754,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildService/SubscribeBatched', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildBatchedStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class WorkspaceBuildDetailsServiceStub(object): @@ -602,42 +784,42 @@ def __init__(self, channel): '/arista.workspace.v1.WorkspaceBuildDetailsService/GetOne', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildDetailsService/GetSome', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsSomeRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildDetailsService/GetAll', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildDetailsService/Subscribe', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.workspace.v1.WorkspaceBuildDetailsService/GetMeta', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildDetailsService/SubscribeMeta', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildDetailsService/GetAllBatched', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.workspace.v1.WorkspaceBuildDetailsService/SubscribeBatched', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsBatchedStreamResponse.FromString, - ) + _registered_method=True) class WorkspaceBuildDetailsServiceServicer(object): @@ -738,6 +920,7 @@ def add_WorkspaceBuildDetailsServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.workspace.v1.WorkspaceBuildDetailsService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.workspace.v1.WorkspaceBuildDetailsService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -755,11 +938,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceBuildDetailsService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceBuildDetailsService/GetOne', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -772,11 +965,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildDetailsService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildDetailsService/GetSome', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsSomeRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -789,11 +992,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildDetailsService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildDetailsService/GetAll', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -806,11 +1019,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildDetailsService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildDetailsService/Subscribe', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -823,11 +1046,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceBuildDetailsService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceBuildDetailsService/GetMeta', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -840,11 +1073,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildDetailsService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildDetailsService/SubscribeMeta', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -857,11 +1100,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildDetailsService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildDetailsService/GetAllBatched', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsBatchedStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -874,11 +1127,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceBuildDetailsService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceBuildDetailsService/SubscribeBatched', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsBatchedStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceBuildDetailsBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class WorkspaceConfigServiceStub(object): @@ -894,67 +1157,67 @@ def __init__(self, channel): '/arista.workspace.v1.WorkspaceConfigService/GetOne', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.workspace.v1.WorkspaceConfigService/GetSome', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.workspace.v1.WorkspaceConfigService/GetAll', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.workspace.v1.WorkspaceConfigService/Subscribe', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.workspace.v1.WorkspaceConfigService/GetMeta', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.workspace.v1.WorkspaceConfigService/SubscribeMeta', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.workspace.v1.WorkspaceConfigService/Set', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSetRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.workspace.v1.WorkspaceConfigService/SetSome', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.workspace.v1.WorkspaceConfigService/Delete', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.workspace.v1.WorkspaceConfigService/DeleteSome', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.workspace.v1.WorkspaceConfigService/DeleteAll', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.workspace.v1.WorkspaceConfigService/GetAllBatched', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.workspace.v1.WorkspaceConfigService/SubscribeBatched', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class WorkspaceConfigServiceServicer(object): @@ -1110,6 +1373,7 @@ def add_WorkspaceConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.workspace.v1.WorkspaceConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.workspace.v1.WorkspaceConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1127,11 +1391,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/GetOne', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1144,11 +1418,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/GetSome', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSomeRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1161,11 +1445,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/GetAll', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1178,11 +1472,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/Subscribe', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1195,11 +1499,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/GetMeta', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1212,11 +1526,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/SubscribeMeta', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -1229,11 +1553,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/Set', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSetRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -1246,11 +1580,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/SetSome', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSetSomeRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -1263,11 +1607,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/Delete', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -1280,11 +1634,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/DeleteSome', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteSomeRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1297,11 +1661,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/DeleteAll', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteAllRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1314,11 +1688,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/GetAllBatched', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigBatchedStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1331,11 +1715,21 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceConfigService/SubscribeBatched', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigBatchedStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) class WorkspaceSyncConfigServiceStub(object): @@ -1351,67 +1745,67 @@ def __init__(self, channel): '/arista.workspace.v1.WorkspaceSyncConfigService/GetOne', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigResponse.FromString, - ) + _registered_method=True) self.GetSome = channel.unary_stream( '/arista.workspace.v1.WorkspaceSyncConfigService/GetSome', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSomeRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSomeResponse.FromString, - ) + _registered_method=True) self.GetAll = channel.unary_stream( '/arista.workspace.v1.WorkspaceSyncConfigService/GetAll', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamResponse.FromString, - ) + _registered_method=True) self.Subscribe = channel.unary_stream( '/arista.workspace.v1.WorkspaceSyncConfigService/Subscribe', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamResponse.FromString, - ) + _registered_method=True) self.GetMeta = channel.unary_unary( '/arista.workspace.v1.WorkspaceSyncConfigService/GetMeta', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.SubscribeMeta = channel.unary_stream( '/arista.workspace.v1.WorkspaceSyncConfigService/SubscribeMeta', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - ) + _registered_method=True) self.Set = channel.unary_unary( '/arista.workspace.v1.WorkspaceSyncConfigService/Set', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSetRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSetResponse.FromString, - ) + _registered_method=True) self.SetSome = channel.unary_stream( '/arista.workspace.v1.WorkspaceSyncConfigService/SetSome', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSetSomeRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSetSomeResponse.FromString, - ) + _registered_method=True) self.Delete = channel.unary_unary( '/arista.workspace.v1.WorkspaceSyncConfigService/Delete', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteResponse.FromString, - ) + _registered_method=True) self.DeleteSome = channel.unary_stream( '/arista.workspace.v1.WorkspaceSyncConfigService/DeleteSome', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteSomeRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteSomeResponse.FromString, - ) + _registered_method=True) self.DeleteAll = channel.unary_stream( '/arista.workspace.v1.WorkspaceSyncConfigService/DeleteAll', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteAllRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteAllResponse.FromString, - ) + _registered_method=True) self.GetAllBatched = channel.unary_stream( '/arista.workspace.v1.WorkspaceSyncConfigService/GetAllBatched', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) self.SubscribeBatched = channel.unary_stream( '/arista.workspace.v1.WorkspaceSyncConfigService/SubscribeBatched', request_serializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigBatchedStreamRequest.SerializeToString, response_deserializer=arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigBatchedStreamResponse.FromString, - ) + _registered_method=True) class WorkspaceSyncConfigServiceServicer(object): @@ -1567,6 +1961,7 @@ def add_WorkspaceSyncConfigServiceServicer_to_server(servicer, server): generic_handler = grpc.method_handlers_generic_handler( 'arista.workspace.v1.WorkspaceSyncConfigService', rpc_method_handlers) server.add_generic_rpc_handlers((generic_handler,)) + server.add_registered_method_handlers('arista.workspace.v1.WorkspaceSyncConfigService', rpc_method_handlers) # This class is part of an EXPERIMENTAL API. @@ -1584,11 +1979,21 @@ def GetOne(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/GetOne', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/GetOne', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetSome(request, @@ -1601,11 +2006,21 @@ def GetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/GetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/GetSome', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSomeRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAll(request, @@ -1618,11 +2033,21 @@ def GetAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/GetAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/GetAll', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Subscribe(request, @@ -1635,11 +2060,21 @@ def Subscribe(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/Subscribe', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/Subscribe', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetMeta(request, @@ -1652,11 +2087,21 @@ def GetMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/GetMeta', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/GetMeta', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeMeta(request, @@ -1669,11 +2114,21 @@ def SubscribeMeta(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/SubscribeMeta', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/SubscribeMeta', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.MetaResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Set(request, @@ -1686,11 +2141,21 @@ def Set(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/Set', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/Set', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSetRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSetResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SetSome(request, @@ -1703,11 +2168,21 @@ def SetSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/SetSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/SetSome', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSetSomeRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigSetSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def Delete(request, @@ -1720,11 +2195,21 @@ def Delete(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_unary(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/Delete', + return grpc.experimental.unary_unary( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/Delete', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteSome(request, @@ -1737,11 +2222,21 @@ def DeleteSome(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/DeleteSome', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/DeleteSome', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteSomeRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteSomeResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def DeleteAll(request, @@ -1754,11 +2249,21 @@ def DeleteAll(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/DeleteAll', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/DeleteAll', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteAllRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigDeleteAllResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def GetAllBatched(request, @@ -1771,11 +2276,21 @@ def GetAllBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/GetAllBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/GetAllBatched', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigBatchedStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) @staticmethod def SubscribeBatched(request, @@ -1788,8 +2303,18 @@ def SubscribeBatched(request, wait_for_ready=None, timeout=None, metadata=None): - return grpc.experimental.unary_stream(request, target, '/arista.workspace.v1.WorkspaceSyncConfigService/SubscribeBatched', + return grpc.experimental.unary_stream( + request, + target, + '/arista.workspace.v1.WorkspaceSyncConfigService/SubscribeBatched', arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigBatchedStreamRequest.SerializeToString, arista_dot_workspace_dot_v1_dot_services_dot_gen__pb2.WorkspaceSyncConfigBatchedStreamResponse.FromString, - options, channel_credentials, - insecure, call_credentials, compression, wait_for_ready, timeout, metadata) + options, + channel_credentials, + insecure, + call_credentials, + compression, + wait_for_ready, + timeout, + metadata, + _registered_method=True) diff --git a/arista/workspace/v1/workspace_pb2.py b/arista/workspace/v1/workspace_pb2.py index 280cd7d5..1cbaffce 100644 --- a/arista/workspace/v1/workspace_pb2.py +++ b/arista/workspace/v1/workspace_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: arista/workspace.v1/workspace.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'arista/workspace.v1/workspace.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -25,34 +35,34 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'arista.workspace.v1.workspace_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'ZJgithub.com/aristanetworks/cloudvision-go/api/arista/workspace.v1;workspace' - _globals['_RESPONSES_VALUESENTRY']._options = None + _globals['_RESPONSES_VALUESENTRY']._loaded_options = None _globals['_RESPONSES_VALUESENTRY']._serialized_options = b'8\001' - _globals['_WORKSPACEKEY']._options = None + _globals['_WORKSPACEKEY']._loaded_options = None _globals['_WORKSPACEKEY']._serialized_options = b'\200\216\031\001' - _globals['_WORKSPACECONFIG']._options = None + _globals['_WORKSPACECONFIG']._loaded_options = None _globals['_WORKSPACECONFIG']._serialized_options = b'\372\215\031\002rw' - _globals['_WORKSPACE']._options = None + _globals['_WORKSPACE']._loaded_options = None _globals['_WORKSPACE']._serialized_options = b'\372\215\031\002ro' - _globals['_INPUTVALIDATIONRESULTS_VALUESENTRY']._options = None + _globals['_INPUTVALIDATIONRESULTS_VALUESENTRY']._loaded_options = None _globals['_INPUTVALIDATIONRESULTS_VALUESENTRY']._serialized_options = b'8\001' - _globals['_CONFIGLETBUILDRESULTS_VALUESENTRY']._options = None + _globals['_CONFIGLETBUILDRESULTS_VALUESENTRY']._loaded_options = None _globals['_CONFIGLETBUILDRESULTS_VALUESENTRY']._serialized_options = b'8\001' - _globals['_BUILDSTAGESTATE_VALUESENTRY']._options = None + _globals['_BUILDSTAGESTATE_VALUESENTRY']._loaded_options = None _globals['_BUILDSTAGESTATE_VALUESENTRY']._serialized_options = b'8\001' - _globals['_WORKSPACEBUILDKEY']._options = None + _globals['_WORKSPACEBUILDKEY']._loaded_options = None _globals['_WORKSPACEBUILDKEY']._serialized_options = b'\200\216\031\001' - _globals['_WORKSPACEBUILD']._options = None + _globals['_WORKSPACEBUILD']._loaded_options = None _globals['_WORKSPACEBUILD']._serialized_options = b'\372\215\031\002ro' - _globals['_WORKSPACEBUILDDETAILSKEY']._options = None + _globals['_WORKSPACEBUILDDETAILSKEY']._loaded_options = None _globals['_WORKSPACEBUILDDETAILSKEY']._serialized_options = b'\200\216\031\001' - _globals['_WORKSPACEBUILDDETAILS']._options = None + _globals['_WORKSPACEBUILDDETAILS']._loaded_options = None _globals['_WORKSPACEBUILDDETAILS']._serialized_options = b'\372\215\031\002ro' - _globals['_WORKSPACESYNCKEY']._options = None + _globals['_WORKSPACESYNCKEY']._loaded_options = None _globals['_WORKSPACESYNCKEY']._serialized_options = b'\200\216\031\001' - _globals['_WORKSPACESYNCCONFIG']._options = None + _globals['_WORKSPACESYNCCONFIG']._loaded_options = None _globals['_WORKSPACESYNCCONFIG']._serialized_options = b'\372\215\031\002rw' _globals['_WORKSPACESTATE']._serialized_start=6263 _globals['_WORKSPACESTATE']._serialized_end=6467 diff --git a/arista/workspace/v1/workspace_pb2_grpc.py b/arista/workspace/v1/workspace_pb2_grpc.py index 2daafffe..aa493470 100644 --- a/arista/workspace/v1/workspace_pb2_grpc.py +++ b/arista/workspace/v1/workspace_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in arista/workspace.v1/workspace_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/fmp/__init__.py b/fmp/__init__.py index fac06ce7..ddf30b3c 100644 --- a/fmp/__init__.py +++ b/fmp/__init__.py @@ -1,8 +1,8 @@ # Copyright (c) 2024 Arista Networks, Inc. All rights reserved. -import fmp.pages_pb2 as pages -import fmp.inet_pb2 as inet import fmp.extensions_pb2 as extensions -import fmp.yang_pb2 as yang -import fmp.deletes_pb2 as deletes import fmp.wrappers_pb2 as wrappers +import fmp.inet_pb2 as inet +import fmp.deletes_pb2 as deletes +import fmp.yang_pb2 as yang +import fmp.pages_pb2 as pages diff --git a/fmp/deletes_pb2.py b/fmp/deletes_pb2.py index e540c2cb..bad8f73d 100644 --- a/fmp/deletes_pb2.py +++ b/fmp/deletes_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: fmp/deletes.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'fmp/deletes.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,8 +29,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'fmp.deletes_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z0github.com/aristanetworks/cloudvision-go/api/fmp' _globals['_DELETEERROR']._serialized_start=27 _globals['_DELETEERROR']._serialized_end=162 diff --git a/fmp/deletes_pb2_grpc.py b/fmp/deletes_pb2_grpc.py index 2daafffe..06359361 100644 --- a/fmp/deletes_pb2_grpc.py +++ b/fmp/deletes_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in fmp/deletes_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/fmp/extensions_pb2.py b/fmp/extensions_pb2.py index ecb2730e..9c912ab2 100644 --- a/fmp/extensions_pb2.py +++ b/fmp/extensions_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: fmp/extensions.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'fmp/extensions.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -20,7 +30,7 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'fmp.extensions_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z0github.com/aristanetworks/cloudvision-go/api/fmp' # @@protoc_insertion_point(module_scope) diff --git a/fmp/extensions_pb2_grpc.py b/fmp/extensions_pb2_grpc.py index 2daafffe..0eb3e7fb 100644 --- a/fmp/extensions_pb2_grpc.py +++ b/fmp/extensions_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in fmp/extensions_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/fmp/inet_pb2.py b/fmp/inet_pb2.py index 48e51b5a..674f0f9a 100644 --- a/fmp/inet_pb2.py +++ b/fmp/inet_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: fmp/inet.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'fmp/inet.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,8 +29,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'fmp.inet_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z0github.com/aristanetworks/cloudvision-go/api/fmp' _globals['_IPADDRESS']._serialized_start=23 _globals['_IPADDRESS']._serialized_end=49 diff --git a/fmp/inet_pb2_grpc.py b/fmp/inet_pb2_grpc.py index 2daafffe..7db42605 100644 --- a/fmp/inet_pb2_grpc.py +++ b/fmp/inet_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in fmp/inet_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/fmp/pages_pb2.py b/fmp/pages_pb2.py index cfc5e116..846e8477 100644 --- a/fmp/pages_pb2.py +++ b/fmp/pages_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: fmp/pages.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'fmp/pages.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,8 +29,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'fmp.pages_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z0github.com/aristanetworks/cloudvision-go/api/fmp' _globals['_SORTDIRECTION']._serialized_start=24 _globals['_SORTDIRECTION']._serialized_end=132 diff --git a/fmp/pages_pb2_grpc.py b/fmp/pages_pb2_grpc.py index 2daafffe..d582f52b 100644 --- a/fmp/pages_pb2_grpc.py +++ b/fmp/pages_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in fmp/pages_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/fmp/wrappers_pb2.py b/fmp/wrappers_pb2.py index 3afd21d9..9753482e 100644 --- a/fmp/wrappers_pb2.py +++ b/fmp/wrappers_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: fmp/wrappers.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'fmp/wrappers.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,116 +29,116 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'fmp.wrappers_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z0github.com/aristanetworks/cloudvision-go/api/fmp' - _globals['_MAPINT64DOUBLE_VALUESENTRY']._options = None + _globals['_MAPINT64DOUBLE_VALUESENTRY']._loaded_options = None _globals['_MAPINT64DOUBLE_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT64FLOAT_VALUESENTRY']._options = None + _globals['_MAPINT64FLOAT_VALUESENTRY']._loaded_options = None _globals['_MAPINT64FLOAT_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT64INT64_VALUESENTRY']._options = None + _globals['_MAPINT64INT64_VALUESENTRY']._loaded_options = None _globals['_MAPINT64INT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT64UINT64_VALUESENTRY']._options = None + _globals['_MAPINT64UINT64_VALUESENTRY']._loaded_options = None _globals['_MAPINT64UINT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT64INT32_VALUESENTRY']._options = None + _globals['_MAPINT64INT32_VALUESENTRY']._loaded_options = None _globals['_MAPINT64INT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT64UINT32_VALUESENTRY']._options = None + _globals['_MAPINT64UINT32_VALUESENTRY']._loaded_options = None _globals['_MAPINT64UINT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT64BOOL_VALUESENTRY']._options = None + _globals['_MAPINT64BOOL_VALUESENTRY']._loaded_options = None _globals['_MAPINT64BOOL_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT64STRING_VALUESENTRY']._options = None + _globals['_MAPINT64STRING_VALUESENTRY']._loaded_options = None _globals['_MAPINT64STRING_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT64BYTES_VALUESENTRY']._options = None + _globals['_MAPINT64BYTES_VALUESENTRY']._loaded_options = None _globals['_MAPINT64BYTES_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT64DOUBLE_VALUESENTRY']._options = None + _globals['_MAPUINT64DOUBLE_VALUESENTRY']._loaded_options = None _globals['_MAPUINT64DOUBLE_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT64FLOAT_VALUESENTRY']._options = None + _globals['_MAPUINT64FLOAT_VALUESENTRY']._loaded_options = None _globals['_MAPUINT64FLOAT_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT64INT64_VALUESENTRY']._options = None + _globals['_MAPUINT64INT64_VALUESENTRY']._loaded_options = None _globals['_MAPUINT64INT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT64UINT64_VALUESENTRY']._options = None + _globals['_MAPUINT64UINT64_VALUESENTRY']._loaded_options = None _globals['_MAPUINT64UINT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT64INT32_VALUESENTRY']._options = None + _globals['_MAPUINT64INT32_VALUESENTRY']._loaded_options = None _globals['_MAPUINT64INT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT64UINT32_VALUESENTRY']._options = None + _globals['_MAPUINT64UINT32_VALUESENTRY']._loaded_options = None _globals['_MAPUINT64UINT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT64BOOL_VALUESENTRY']._options = None + _globals['_MAPUINT64BOOL_VALUESENTRY']._loaded_options = None _globals['_MAPUINT64BOOL_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT64STRING_VALUESENTRY']._options = None + _globals['_MAPUINT64STRING_VALUESENTRY']._loaded_options = None _globals['_MAPUINT64STRING_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT64BYTES_VALUESENTRY']._options = None + _globals['_MAPUINT64BYTES_VALUESENTRY']._loaded_options = None _globals['_MAPUINT64BYTES_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT32DOUBLE_VALUESENTRY']._options = None + _globals['_MAPINT32DOUBLE_VALUESENTRY']._loaded_options = None _globals['_MAPINT32DOUBLE_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT32FLOAT_VALUESENTRY']._options = None + _globals['_MAPINT32FLOAT_VALUESENTRY']._loaded_options = None _globals['_MAPINT32FLOAT_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT32INT64_VALUESENTRY']._options = None + _globals['_MAPINT32INT64_VALUESENTRY']._loaded_options = None _globals['_MAPINT32INT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT32UINT64_VALUESENTRY']._options = None + _globals['_MAPINT32UINT64_VALUESENTRY']._loaded_options = None _globals['_MAPINT32UINT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT32INT32_VALUESENTRY']._options = None + _globals['_MAPINT32INT32_VALUESENTRY']._loaded_options = None _globals['_MAPINT32INT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT32UINT32_VALUESENTRY']._options = None + _globals['_MAPINT32UINT32_VALUESENTRY']._loaded_options = None _globals['_MAPINT32UINT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT32BOOL_VALUESENTRY']._options = None + _globals['_MAPINT32BOOL_VALUESENTRY']._loaded_options = None _globals['_MAPINT32BOOL_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT32STRING_VALUESENTRY']._options = None + _globals['_MAPINT32STRING_VALUESENTRY']._loaded_options = None _globals['_MAPINT32STRING_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPINT32BYTES_VALUESENTRY']._options = None + _globals['_MAPINT32BYTES_VALUESENTRY']._loaded_options = None _globals['_MAPINT32BYTES_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT32DOUBLE_VALUESENTRY']._options = None + _globals['_MAPUINT32DOUBLE_VALUESENTRY']._loaded_options = None _globals['_MAPUINT32DOUBLE_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT32FLOAT_VALUESENTRY']._options = None + _globals['_MAPUINT32FLOAT_VALUESENTRY']._loaded_options = None _globals['_MAPUINT32FLOAT_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT32INT64_VALUESENTRY']._options = None + _globals['_MAPUINT32INT64_VALUESENTRY']._loaded_options = None _globals['_MAPUINT32INT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT32UINT64_VALUESENTRY']._options = None + _globals['_MAPUINT32UINT64_VALUESENTRY']._loaded_options = None _globals['_MAPUINT32UINT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT32INT32_VALUESENTRY']._options = None + _globals['_MAPUINT32INT32_VALUESENTRY']._loaded_options = None _globals['_MAPUINT32INT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT32UINT32_VALUESENTRY']._options = None + _globals['_MAPUINT32UINT32_VALUESENTRY']._loaded_options = None _globals['_MAPUINT32UINT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT32BOOL_VALUESENTRY']._options = None + _globals['_MAPUINT32BOOL_VALUESENTRY']._loaded_options = None _globals['_MAPUINT32BOOL_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT32STRING_VALUESENTRY']._options = None + _globals['_MAPUINT32STRING_VALUESENTRY']._loaded_options = None _globals['_MAPUINT32STRING_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPUINT32BYTES_VALUESENTRY']._options = None + _globals['_MAPUINT32BYTES_VALUESENTRY']._loaded_options = None _globals['_MAPUINT32BYTES_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPBOOLDOUBLE_VALUESENTRY']._options = None + _globals['_MAPBOOLDOUBLE_VALUESENTRY']._loaded_options = None _globals['_MAPBOOLDOUBLE_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPBOOLFLOAT_VALUESENTRY']._options = None + _globals['_MAPBOOLFLOAT_VALUESENTRY']._loaded_options = None _globals['_MAPBOOLFLOAT_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPBOOLINT64_VALUESENTRY']._options = None + _globals['_MAPBOOLINT64_VALUESENTRY']._loaded_options = None _globals['_MAPBOOLINT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPBOOLUINT64_VALUESENTRY']._options = None + _globals['_MAPBOOLUINT64_VALUESENTRY']._loaded_options = None _globals['_MAPBOOLUINT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPBOOLINT32_VALUESENTRY']._options = None + _globals['_MAPBOOLINT32_VALUESENTRY']._loaded_options = None _globals['_MAPBOOLINT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPBOOLUINT32_VALUESENTRY']._options = None + _globals['_MAPBOOLUINT32_VALUESENTRY']._loaded_options = None _globals['_MAPBOOLUINT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPBOOLBOOL_VALUESENTRY']._options = None + _globals['_MAPBOOLBOOL_VALUESENTRY']._loaded_options = None _globals['_MAPBOOLBOOL_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPBOOLSTRING_VALUESENTRY']._options = None + _globals['_MAPBOOLSTRING_VALUESENTRY']._loaded_options = None _globals['_MAPBOOLSTRING_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPBOOLBYTES_VALUESENTRY']._options = None + _globals['_MAPBOOLBYTES_VALUESENTRY']._loaded_options = None _globals['_MAPBOOLBYTES_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPSTRINGDOUBLE_VALUESENTRY']._options = None + _globals['_MAPSTRINGDOUBLE_VALUESENTRY']._loaded_options = None _globals['_MAPSTRINGDOUBLE_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPSTRINGFLOAT_VALUESENTRY']._options = None + _globals['_MAPSTRINGFLOAT_VALUESENTRY']._loaded_options = None _globals['_MAPSTRINGFLOAT_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPSTRINGINT64_VALUESENTRY']._options = None + _globals['_MAPSTRINGINT64_VALUESENTRY']._loaded_options = None _globals['_MAPSTRINGINT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPSTRINGUINT64_VALUESENTRY']._options = None + _globals['_MAPSTRINGUINT64_VALUESENTRY']._loaded_options = None _globals['_MAPSTRINGUINT64_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPSTRINGINT32_VALUESENTRY']._options = None + _globals['_MAPSTRINGINT32_VALUESENTRY']._loaded_options = None _globals['_MAPSTRINGINT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPSTRINGUINT32_VALUESENTRY']._options = None + _globals['_MAPSTRINGUINT32_VALUESENTRY']._loaded_options = None _globals['_MAPSTRINGUINT32_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPSTRINGBOOL_VALUESENTRY']._options = None + _globals['_MAPSTRINGBOOL_VALUESENTRY']._loaded_options = None _globals['_MAPSTRINGBOOL_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPSTRINGSTRING_VALUESENTRY']._options = None + _globals['_MAPSTRINGSTRING_VALUESENTRY']._loaded_options = None _globals['_MAPSTRINGSTRING_VALUESENTRY']._serialized_options = b'8\001' - _globals['_MAPSTRINGBYTES_VALUESENTRY']._options = None + _globals['_MAPSTRINGBYTES_VALUESENTRY']._loaded_options = None _globals['_MAPSTRINGBYTES_VALUESENTRY']._serialized_options = b'8\001' _globals['_REPEATEDDOUBLE']._serialized_start=27 _globals['_REPEATEDDOUBLE']._serialized_end=59 diff --git a/fmp/wrappers_pb2_grpc.py b/fmp/wrappers_pb2_grpc.py index 2daafffe..9a9a5b1d 100644 --- a/fmp/wrappers_pb2_grpc.py +++ b/fmp/wrappers_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in fmp/wrappers_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + ) diff --git a/fmp/yang_pb2.py b/fmp/yang_pb2.py index 9fc1ff10..d225ee56 100644 --- a/fmp/yang_pb2.py +++ b/fmp/yang_pb2.py @@ -1,12 +1,22 @@ # -*- coding: utf-8 -*- # Generated by the protocol buffer compiler. DO NOT EDIT! +# NO CHECKED-IN PROTOBUF GENCODE # source: fmp/yang.proto -# Protobuf Python Version: 4.25.1 +# Protobuf Python Version: 5.28.1 """Generated protocol buffer code.""" from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool +from google.protobuf import runtime_version as _runtime_version from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder +_runtime_version.ValidateProtobufRuntimeVersion( + _runtime_version.Domain.PUBLIC, + 5, + 28, + 1, + '', + 'fmp/yang.proto' +) # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,8 +29,8 @@ _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'fmp.yang_pb2', _globals) -if _descriptor._USE_C_DESCRIPTORS == False: - _globals['DESCRIPTOR']._options = None +if not _descriptor._USE_C_DESCRIPTORS: + _globals['DESCRIPTOR']._loaded_options = None _globals['DESCRIPTOR']._serialized_options = b'Z0github.com/aristanetworks/cloudvision-go/api/fmp' _globals['_MACADDRESS']._serialized_start=23 _globals['_MACADDRESS']._serialized_end=50 diff --git a/fmp/yang_pb2_grpc.py b/fmp/yang_pb2_grpc.py index 2daafffe..87740c64 100644 --- a/fmp/yang_pb2_grpc.py +++ b/fmp/yang_pb2_grpc.py @@ -1,4 +1,24 @@ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT! """Client and server classes corresponding to protobuf-defined services.""" import grpc +import warnings + +GRPC_GENERATED_VERSION = '1.68.1' +GRPC_VERSION = grpc.__version__ +_version_not_supported = False + +try: + from grpc._utilities import first_version_is_lower + _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION) +except ImportError: + _version_not_supported = True + +if _version_not_supported: + raise RuntimeError( + f'The grpc package installed is at version {GRPC_VERSION},' + + f' but the generated code in fmp/yang_pb2_grpc.py depends on' + + f' grpcio>={GRPC_GENERATED_VERSION}.' + + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}' + + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.' + )