# 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.67.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}.'
)
[docs]
class EventServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetOne = channel.unary_unary(
'/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)
[docs]
class EventServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
[docs]
def GetOne(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!')
[docs]
def GetSome(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!')
[docs]
def GetAll(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!')
[docs]
def Subscribe(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!')
[docs]
def add_EventServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetOne': grpc.unary_unary_rpc_method_handler(
servicer.GetOne,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventResponse.SerializeToString,
),
'GetSome': grpc.unary_stream_rpc_method_handler(
servicer.GetSome,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventSomeRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventSomeResponse.SerializeToString,
),
'GetAll': grpc.unary_stream_rpc_method_handler(
servicer.GetAll,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamResponse.SerializeToString,
),
'Subscribe': grpc.unary_stream_rpc_method_handler(
servicer.Subscribe,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamResponse.SerializeToString,
),
'GetMeta': grpc.unary_unary_rpc_method_handler(
servicer.GetMeta,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'SubscribeMeta': grpc.unary_stream_rpc_method_handler(
servicer.SubscribeMeta,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
}
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.
[docs]
class EventService(object):
"""Missing associated documentation comment in .proto file."""
[docs]
@staticmethod
def GetOne(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_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,
_registered_method=True)
[docs]
@staticmethod
def GetSome(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.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,
_registered_method=True)
[docs]
@staticmethod
def GetAll(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.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,
_registered_method=True)
[docs]
@staticmethod
def Subscribe(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.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,
_registered_method=True)
[docs]
class EventAnnotationConfigServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetOne = channel.unary_unary(
'/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)
[docs]
class EventAnnotationConfigServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
[docs]
def GetOne(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!')
[docs]
def GetSome(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!')
[docs]
def GetAll(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!')
[docs]
def Subscribe(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!')
[docs]
def Set(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!')
[docs]
def SetSome(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!')
[docs]
def Delete(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!')
[docs]
def DeleteSome(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!')
[docs]
def DeleteAll(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!')
[docs]
def add_EventAnnotationConfigServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetOne': grpc.unary_unary_rpc_method_handler(
servicer.GetOne,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigResponse.SerializeToString,
),
'GetSome': grpc.unary_stream_rpc_method_handler(
servicer.GetSome,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSomeRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSomeResponse.SerializeToString,
),
'GetAll': grpc.unary_stream_rpc_method_handler(
servicer.GetAll,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamResponse.SerializeToString,
),
'Subscribe': grpc.unary_stream_rpc_method_handler(
servicer.Subscribe,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamResponse.SerializeToString,
),
'GetMeta': grpc.unary_unary_rpc_method_handler(
servicer.GetMeta,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'SubscribeMeta': grpc.unary_stream_rpc_method_handler(
servicer.SubscribeMeta,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'Set': grpc.unary_unary_rpc_method_handler(
servicer.Set,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetResponse.SerializeToString,
),
'SetSome': grpc.unary_stream_rpc_method_handler(
servicer.SetSome,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetSomeRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigSetSomeResponse.SerializeToString,
),
'Delete': grpc.unary_unary_rpc_method_handler(
servicer.Delete,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteResponse.SerializeToString,
),
'DeleteSome': grpc.unary_stream_rpc_method_handler(
servicer.DeleteSome,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteSomeRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteSomeResponse.SerializeToString,
),
'DeleteAll': grpc.unary_stream_rpc_method_handler(
servicer.DeleteAll,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteAllRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.EventAnnotationConfigDeleteAllResponse.SerializeToString,
),
}
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.
[docs]
class EventAnnotationConfigService(object):
"""Missing associated documentation comment in .proto file."""
[docs]
@staticmethod
def GetOne(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_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,
_registered_method=True)
[docs]
@staticmethod
def GetSome(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.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,
_registered_method=True)
[docs]
@staticmethod
def GetAll(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.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,
_registered_method=True)
[docs]
@staticmethod
def Subscribe(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.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,
_registered_method=True)
[docs]
@staticmethod
def Set(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_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,
_registered_method=True)
[docs]
@staticmethod
def SetSome(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.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,
_registered_method=True)
[docs]
@staticmethod
def Delete(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_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,
_registered_method=True)
[docs]
@staticmethod
def DeleteSome(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.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,
_registered_method=True)
[docs]
@staticmethod
def DeleteAll(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.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,
_registered_method=True)
[docs]
class UserEventCreationConfigServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.GetOne = channel.unary_unary(
'/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)
[docs]
class UserEventCreationConfigServiceServicer(object):
"""Missing associated documentation comment in .proto file."""
[docs]
def GetOne(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!')
[docs]
def GetSome(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!')
[docs]
def GetAll(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!')
[docs]
def Subscribe(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!')
[docs]
def Set(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!')
[docs]
def SetSome(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!')
[docs]
def Delete(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!')
[docs]
def DeleteSome(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!')
[docs]
def DeleteAll(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!')
[docs]
def add_UserEventCreationConfigServiceServicer_to_server(servicer, server):
rpc_method_handlers = {
'GetOne': grpc.unary_unary_rpc_method_handler(
servicer.GetOne,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigResponse.SerializeToString,
),
'GetSome': grpc.unary_stream_rpc_method_handler(
servicer.GetSome,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSomeRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSomeResponse.SerializeToString,
),
'GetAll': grpc.unary_stream_rpc_method_handler(
servicer.GetAll,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamResponse.SerializeToString,
),
'Subscribe': grpc.unary_stream_rpc_method_handler(
servicer.Subscribe,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamResponse.SerializeToString,
),
'GetMeta': grpc.unary_unary_rpc_method_handler(
servicer.GetMeta,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'SubscribeMeta': grpc.unary_stream_rpc_method_handler(
servicer.SubscribeMeta,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigStreamRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.MetaResponse.SerializeToString,
),
'Set': grpc.unary_unary_rpc_method_handler(
servicer.Set,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetResponse.SerializeToString,
),
'SetSome': grpc.unary_stream_rpc_method_handler(
servicer.SetSome,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetSomeRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigSetSomeResponse.SerializeToString,
),
'Delete': grpc.unary_unary_rpc_method_handler(
servicer.Delete,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteResponse.SerializeToString,
),
'DeleteSome': grpc.unary_stream_rpc_method_handler(
servicer.DeleteSome,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteSomeRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteSomeResponse.SerializeToString,
),
'DeleteAll': grpc.unary_stream_rpc_method_handler(
servicer.DeleteAll,
request_deserializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteAllRequest.FromString,
response_serializer=arista_dot_event_dot_v1_dot_services_dot_gen__pb2.UserEventCreationConfigDeleteAllResponse.SerializeToString,
),
}
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.
[docs]
class UserEventCreationConfigService(object):
"""Missing associated documentation comment in .proto file."""
[docs]
@staticmethod
def GetOne(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_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,
_registered_method=True)
[docs]
@staticmethod
def GetSome(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.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,
_registered_method=True)
[docs]
@staticmethod
def GetAll(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.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,
_registered_method=True)
[docs]
@staticmethod
def Subscribe(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.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,
_registered_method=True)
[docs]
@staticmethod
def Set(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_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,
_registered_method=True)
[docs]
@staticmethod
def SetSome(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.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,
_registered_method=True)
[docs]
@staticmethod
def Delete(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_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,
_registered_method=True)
[docs]
@staticmethod
def DeleteSome(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.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,
_registered_method=True)
[docs]
@staticmethod
def DeleteAll(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.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,
_registered_method=True)